RED-8762: removed unnecessary consumes from new changeFlags endpoint and added dossierId as path variable
This commit is contained in:
parent
fb6b0e29f3
commit
10be0bd828
@ -44,7 +44,8 @@ public interface DictionaryResource {
|
|||||||
String ENTRY_PATH_VARIABLE = "/{" + ENTRY_PARAMETER_NAME + "}";
|
String ENTRY_PATH_VARIABLE = "/{" + ENTRY_PARAMETER_NAME + "}";
|
||||||
|
|
||||||
String DOSSIER_TEMPLATE_PARAMETER_NAME = "dossierTemplateId";
|
String DOSSIER_TEMPLATE_PARAMETER_NAME = "dossierTemplateId";
|
||||||
String DOSSIER_TEMPLATE_PATH_VARIABLE = "/{dossierTemplateId}";
|
String DOSSIER_TEMPLATE_PATH_VARIABLE = "/{"+ DOSSIER_TEMPLATE_PARAMETER_NAME + "}";
|
||||||
|
|
||||||
|
|
||||||
String UPLOAD = "/upload";
|
String UPLOAD = "/upload";
|
||||||
String DOWNLOAD = "/download";
|
String DOWNLOAD = "/download";
|
||||||
@ -56,6 +57,7 @@ public interface DictionaryResource {
|
|||||||
String COLOR_REST_PATH = ExternalApi.BASE_PATH + "/color";
|
String COLOR_REST_PATH = ExternalApi.BASE_PATH + "/color";
|
||||||
|
|
||||||
String DOSSIER_ID_PARAMETER_NAME = "dossierId";
|
String DOSSIER_ID_PARAMETER_NAME = "dossierId";
|
||||||
|
String DOSSIER_ID_PATH_VARIABLE = "/{"+ DOSSIER_ID_PARAMETER_NAME + "}";
|
||||||
|
|
||||||
String INCLUDE_DELETED_PARAMETER_NAME = "includeDeleted";
|
String INCLUDE_DELETED_PARAMETER_NAME = "includeDeleted";
|
||||||
|
|
||||||
@ -198,12 +200,12 @@ public interface DictionaryResource {
|
|||||||
|
|
||||||
|
|
||||||
@ResponseStatus(HttpStatus.NO_CONTENT)
|
@ResponseStatus(HttpStatus.NO_CONTENT)
|
||||||
@PostMapping(value = DICTIONARY_REST_PATH + UPDATE_FLAG + TYPE_PATH_VARIABLE + DOSSIER_TEMPLATE_PATH_VARIABLE)
|
@PostMapping(value = DICTIONARY_REST_PATH + UPDATE_FLAG + TYPE_PATH_VARIABLE + DOSSIER_TEMPLATE_PATH_VARIABLE + DOSSIER_ID_PATH_VARIABLE)
|
||||||
@Operation(summary = "Updates flags regarding to selected type, dossier and dossier template.", description = "None")
|
@Operation(summary = "Updates flags regarding to selected type, dossier and dossier template.", description = "None")
|
||||||
@ApiResponses(value = {@ApiResponse(responseCode = "204", description = "Successfully updated the flags of the type."), @ApiResponse(responseCode = "400", description = "Request contains error."), @ApiResponse(responseCode = "404", description = "The entry type is not found.")})
|
@ApiResponses(value = {@ApiResponse(responseCode = "204", description = "Successfully updated the flags of the type."), @ApiResponse(responseCode = "400", description = "Request contains error."), @ApiResponse(responseCode = "404", description = "The entry type is not found.")})
|
||||||
void changeFlags(@PathVariable(TYPE_PARAMETER_NAME) String type,
|
void changeFlags(@PathVariable(TYPE_PARAMETER_NAME) String type,
|
||||||
@PathVariable(DOSSIER_TEMPLATE_PARAMETER_NAME) String dossierTemplateId,
|
@PathVariable(DOSSIER_TEMPLATE_PARAMETER_NAME) String dossierTemplateId,
|
||||||
@RequestParam(value = DOSSIER_ID_PARAMETER_NAME) String dossierId,
|
@PathVariable(DOSSIER_ID_PARAMETER_NAME) String dossierId,
|
||||||
@RequestParam(value = "addToDictionary") boolean addToDictionary);
|
@RequestParam(value = "addToDictionary") boolean addToDictionary);
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user