Add @SecurityRequirement annotation to PersistenceResource::httpPutPersistenceItemData function (#2406)
Signed-off-by: Paul Vogel <github@paulvogel.me>pull/2410/head
parent
f58fce3500
commit
5cc76378a0
|
@ -199,7 +199,8 @@ public class PersistenceResource implements RESTResource {
|
|||
@RolesAllowed({ Role.ADMIN })
|
||||
@Path("/items/{itemname: [a-zA-Z_0-9]+}")
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
@Operation(operationId = "storeItemDataInPersistenceService", summary = "Stores item persistence data into the persistence service.", responses = {
|
||||
@Operation(operationId = "storeItemDataInPersistenceService", summary = "Stores item persistence data into the persistence service.", security = {
|
||||
@SecurityRequirement(name = "oauth2", scopes = { "admin" }) }, responses = {
|
||||
@ApiResponse(responseCode = "200", description = "OK"),
|
||||
@ApiResponse(responseCode = "404", description = "Unknown Item or persistence service") })
|
||||
public Response httpPutPersistenceItemData(@Context HttpHeaders headers,
|
||||
|
|
Loading…
Reference in New Issue