Added consumes and produces annotations

This commit is contained in:
Fabio Sinibaldi 2022-05-17 15:22:49 +02:00
parent ea6fca3222
commit dd61ba2d37
1 changed files with 4 additions and 0 deletions

View File

@ -158,6 +158,8 @@ public class ProfiledDocuments {
}
@PUT
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("/"+InterfaceConstants.Methods.FORCE_UNLOCK+"/{"+InterfaceConstants.Parameters.PROJECT_ID+"}")
public Project forceUnlock(
@PathParam(InterfaceConstants.Parameters.PROJECT_ID) String id){
@ -172,6 +174,8 @@ public class ProfiledDocuments {
}
@PUT
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("/"+InterfaceConstants.Methods.SET_PROJECT_ACCESS_POLICY+"/{"+InterfaceConstants.Parameters.PROJECT_ID+"}")
public Project setAccessPolicy(
@PathParam(InterfaceConstants.Parameters.PROJECT_ID) String id, Access toSet){