コード例 #1
0
ファイル: TiersApi.java プロジェクト: ruwany/carbon-apimgt
 @PUT
 @Path("/{tierLevel}/{tierName}")
 @Consumes({"application/json"})
 @Produces({"application/json"})
 @io.swagger.annotations.ApiOperation(
     value = "Update a Tier",
     notes = "Update tier details\n",
     response = TierDTO.class)
 @io.swagger.annotations.ApiResponses(
     value = {
       @io.swagger.annotations.ApiResponse(code = 200, message = "OK.\nSubscription updated.\n"),
       @io.swagger.annotations.ApiResponse(
           code = 400,
           message = "Bad Request.\nInvalid request or validation error.\n"),
       @io.swagger.annotations.ApiResponse(
           code = 404,
           message = "Not Found.\nThe resource to be updated 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 tiersTierLevelTierNamePut(
     @ApiParam(value = "Tier name\n", required = true) @PathParam("tierName") String tierName,
     @ApiParam(value = "Tier object that needs to be modified\n", required = true) TierDTO body,
     @ApiParam(
             value = "List API or Application or Resource type tiers.\n",
             required = true,
             allowableValues = "{values=[api, application, resource]}")
         @PathParam("tierLevel")
         String tierLevel,
     @ApiParam(
             value = "Media type of the entity in the body. Default is JSON.\n",
             required = true,
             defaultValue = "JSON")
         @HeaderParam("Content-Type")
         String contentType,
     @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) {
   return delegate.tiersTierLevelTierNamePut(
       tierName, body, tierLevel, contentType, ifMatch, ifUnmodifiedSince);
 }