Added missing api annotations.
lbs-gitea/maptology/master This commit looks good

This commit is contained in:
2018-01-18 10:57:35 +01:00
parent 55f5260e2b
commit a1997ffcaa
@@ -13,6 +13,7 @@ import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
@@ -73,7 +74,7 @@ public interface IPrivilegeService {
@ApiResponse(code = HttpServletResponse.SC_FORBIDDEN, message = "Insufficient access rights.")
})
@RolesAllowed(Roles.USER)
Response addCurrentUserPrivilege(@ApiParam(value="The token of the share.", required=true) @Valid @NotNull String token);
Response addCurrentUserPrivilege(@ApiParam(value="The token of the share.", required=true) @QueryParam("share") @Valid @NotNull String token);
/**
* Returns the privileges for a particular user.
@@ -152,6 +153,6 @@ public interface IPrivilegeService {
@ApiResponse(code = HttpServletResponse.SC_FORBIDDEN, message = "Insufficient access rights.")
})
@RolesAllowed(Roles.ADMIN)
Response addUserPrivilege(@ApiParam(value="The user id.") @PathParam("id") long id, @ApiParam(value="The token of the share.", required=true) @Valid @NotNull String token);
Response addUserPrivilege(@ApiParam(value="The user id.") @PathParam("id") long id, @ApiParam(value="The token of the share.", required=true) @QueryParam("share") @Valid @NotNull String token);
}