org.lockss.laaws.poller.api.StatusApi Maven / Gradle / Ivy
/**
* NOTE: This class is auto generated by the swagger code generator program (2.4.21).
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
package org.lockss.laaws.poller.api;
import org.lockss.util.rest.status.ApiStatus;
import io.swagger.annotations.*;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;
import javax.validation.Valid;
import javax.validation.constraints.*;
import java.util.List;
@Validated
@Api(value = "status", description = "the status API")
@RequestMapping(value = "")
public interface StatusApi {
StatusApiDelegate getDelegate();
@ApiOperation(value = "Get the status of the service", nickname = "getStatus", notes = "Get the status of the service", response = ApiStatus.class, authorizations = {
@Authorization(value = "basicAuth")
}, tags={ "service", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "The status of the service", response = ApiStatus.class),
@ApiResponse(code = 401, message = "Unauthorized request"),
@ApiResponse(code = 500, message = "Internal server error"),
@ApiResponse(code = 503, message = "Some or all of the system is not available") })
@RequestMapping(value = "/status",
produces = { "application/json" },
method = RequestMethod.GET)
default ResponseEntity getStatus() {
return getDelegate().getStatus();
}
}