|
15 | 15 | import i5.las2peer.restMapper.HttpResponse; |
16 | 16 | import i5.las2peer.restMapper.MediaType; |
17 | 17 | import i5.las2peer.restMapper.RESTMapper; |
| 18 | +import i5.las2peer.restMapper.annotations.ContentParam; |
18 | 19 | import i5.las2peer.security.UserAgent; |
19 | 20 | import io.swagger.annotations.*; |
20 | 21 | import jodd.vtor.Violation; |
@@ -125,7 +126,7 @@ public HttpResponse getRequirement(@PathParam("requirementId") int requirementId |
125 | 126 | @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = "Not found"), |
126 | 127 | @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = "Internal server problems") |
127 | 128 | }) |
128 | | - public HttpResponse createRequirement(@ApiParam(value = "Requirement entity as JSON", required = true) String requirement) { |
| 129 | + public HttpResponse createRequirement(@ApiParam(value = "Requirement entity as JSON", required = true) @ContentParam String requirement) { |
129 | 130 | DALFacade dalFacade = null; |
130 | 131 | try { |
131 | 132 | long userId = ((UserAgent) getActiveAgent()).getId(); |
@@ -198,7 +199,7 @@ public HttpResponse createRequirement(@ApiParam(value = "Requirement entity as J |
198 | 199 | @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = "Internal server problems") |
199 | 200 | }) |
200 | 201 | public HttpResponse updateRequirement(@PathParam("requirementId") int requirementId, |
201 | | - @ApiParam(value = "Requirement entity as JSON", required = true) String requirement) { |
| 202 | + @ApiParam(value = "Requirement entity as JSON", required = true) @ContentParam String requirement) { |
202 | 203 | DALFacade dalFacade = null; |
203 | 204 | try { |
204 | 205 | String registratorErrors = bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING)); |
|
0 commit comments