コード例 #1
0
ファイル: TiersApi.java プロジェクト: ruwany/carbon-apimgt
 @POST
 @Path("/update-permission")
 @Consumes({"application/json"})
 @Produces({"application/json"})
 @io.swagger.annotations.ApiOperation(
     value = "Update Tier Permission",
     notes = "Update tier permission\n",
     response = TierDTO.class,
     responseContainer = "List")
 @io.swagger.annotations.ApiResponses(
     value = {
       @io.swagger.annotations.ApiResponse(
           code = 200,
           message = "OK.\nSuccessfully updated tier permissions\n"),
       @io.swagger.annotations.ApiResponse(
           code = 400,
           message = "Bad Request.\nInvalid request or validation error.\n"),
       @io.swagger.annotations.ApiResponse(
           code = 403,
           message =
               "Forbidden.\nThe request must be conditional but no condition has been specified.\n"),
       @io.swagger.annotations.ApiResponse(
           code = 404,
           message = "Not Found.\nRequested tier does not exist.\n"),
       @io.swagger.annotations.ApiResponse(
           code = 412,
           message =
               "Precondition Failed.\nThe request has not been performed because one of the preconditions is not met.\n")
     })
 public Response tiersUpdatePermissionPost(
     @ApiParam(value = "Name of the tier\n", required = true) @QueryParam("tierName")
         String tierName,
     @ApiParam(
             value = "List API or Application or Resource type tiers.\n",
             required = true,
             allowableValues = "{values=[api, application, resource]}")
         @QueryParam("tierLevel")
         String tierLevel,
     @ApiParam(value = "Validator for conditional requests; based on ETag.\n")
         @HeaderParam("If-Match")
         String ifMatch,
     @ApiParam(value = "Validator for conditional requests; based on Last Modified header.\n")
         @HeaderParam("If-Unmodified-Since")
         String ifUnmodifiedSince,
     @ApiParam(value = "") TierPermissionDTO permissions) {
   return delegate.tiersUpdatePermissionPost(
       tierName, tierLevel, ifMatch, ifUnmodifiedSince, permissions);
 }