|
@@ -18,10 +18,6 @@
|
|
|
|
|
|
package org.apache.hadoop.ozone.web.interfaces;
|
|
|
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiImplicitParam;
|
|
|
-import io.swagger.annotations.ApiImplicitParams;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.hadoop.ozone.web.exceptions.OzoneException;
|
|
|
import org.apache.hadoop.ozone.client.rest.headers.Header;
|
|
|
|
|
@@ -46,7 +42,6 @@ import javax.ws.rs.core.UriInfo;
|
|
|
* bucket related functionality.
|
|
|
*/
|
|
|
@Path("/{volume}/{bucket}")
|
|
|
-@Api(tags = "bucket")
|
|
|
public interface Bucket {
|
|
|
/**
|
|
|
* createBucket call handles the POST request for Creating a Bucket.
|
|
@@ -62,16 +57,6 @@ public interface Bucket {
|
|
|
* @throws OzoneException
|
|
|
*/
|
|
|
@POST
|
|
|
- @ApiOperation("Create new bucket to a volume")
|
|
|
- @ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
|
- true, paramType = "header"),
|
|
|
- @ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
|
- true, paramType = "header"),
|
|
|
- @ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
|
- + "04:23:30 GMT", required = true, paramType = "header"),
|
|
|
- @ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
|
- true, paramType = "header")})
|
|
|
Response createBucket(@PathParam("volume") String volume,
|
|
|
@PathParam("bucket") String bucket,
|
|
|
@Context Request req, @Context UriInfo info,
|
|
@@ -91,16 +76,6 @@ public interface Bucket {
|
|
|
* @throws OzoneException
|
|
|
*/
|
|
|
@PUT
|
|
|
- @ApiOperation("Update bucket")
|
|
|
- @ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
|
- true, paramType = "header"),
|
|
|
- @ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
|
- true, paramType = "header"),
|
|
|
- @ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
|
- + "04:23:30 GMT", required = true, paramType = "header"),
|
|
|
- @ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
|
- true, paramType = "header")})
|
|
|
Response updateBucket(@PathParam("volume") String volume,
|
|
|
@PathParam("bucket") String bucket,
|
|
|
@Context Request req, @Context UriInfo info,
|
|
@@ -120,16 +95,6 @@ public interface Bucket {
|
|
|
* @throws OzoneException
|
|
|
*/
|
|
|
@DELETE
|
|
|
- @ApiOperation("Deletes an empty bucket.")
|
|
|
- @ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
|
- true, paramType = "header"),
|
|
|
- @ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
|
- true, paramType = "header"),
|
|
|
- @ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
|
- + "04:23:30 GMT", required = true, paramType = "header"),
|
|
|
- @ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
|
- true, paramType = "header")})
|
|
|
Response deleteBucket(@PathParam("volume") String volume,
|
|
|
@PathParam("bucket") String bucket,
|
|
|
@Context Request req, @Context UriInfo info,
|
|
@@ -154,16 +119,6 @@ public interface Bucket {
|
|
|
|
|
|
@GET
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
- @ApiOperation("List contents of a bucket")
|
|
|
- @ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "x-ozone-version", example = "v1", required =
|
|
|
- true, paramType = "header"),
|
|
|
- @ApiImplicitParam(name = "x-ozone-user", example = "user", required =
|
|
|
- true, paramType = "header"),
|
|
|
- @ApiImplicitParam(name = "Date", example = "Date: Mon, 26 Jun 2017 "
|
|
|
- + "04:23:30 GMT", required = true, paramType = "header"),
|
|
|
- @ApiImplicitParam(name = "Authorization", example = "OZONE", required =
|
|
|
- true, paramType = "header")})
|
|
|
Response listBucket(@PathParam("volume") String volume,
|
|
|
@PathParam("bucket") String bucket,
|
|
|
@DefaultValue(Header.OZONE_LIST_QUERY_KEY)
|