public String dropBucket(@PathParam("dbName") final String dbName, @PathParam("bucketName") final String bucketName,
@QueryParam("connectionId") final String connectionId, @Context final HttpServletRequest request) {
String response = new ResponseTemplate().execute(logger, connectionId, request, new ResponseCallback() {
public Object execute() throws Exception {
GridFSService gridFSService = new GridFSServiceImpl(connectionId);
return gridFSService.dropBucket(dbName, bucketName);
}
});
return response;
}
}