コード例 #1
0
ファイル: TiersApi.java プロジェクト: ruwany/carbon-apimgt
 @DELETE
 @Path("/{tierLevel}/{tierName}")
 @Consumes({"application/json"})
 @Produces({"application/json"})
 @io.swagger.annotations.ApiOperation(
     value = "Delete a Tier",
     notes = "Remove a tier\n",
     response = void.class)
 @io.swagger.annotations.ApiResponses(
     value = {
       @io.swagger.annotations.ApiResponse(
           code = 200,
           message = "OK.\nResource successfully deleted.\n"),
       @io.swagger.annotations.ApiResponse(
           code = 404,
           message = "Not Found.\nResource to be deleted 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 tiersTierLevelTierNameDelete(
     @ApiParam(value = "Tier name\n", required = true) @PathParam("tierName") String tierName,
     @ApiParam(
             value = "List API or Application or Resource type tiers.\n",
             required = true,
             allowableValues = "{values=[api, application, resource]}")
         @PathParam("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) {
   return delegate.tiersTierLevelTierNameDelete(tierName, tierLevel, ifMatch, ifUnmodifiedSince);
 }