
org.lockss.laaws.poller.api.VotesApi Maven / Gradle / Ivy
/**
* NOTE: This class is auto generated by the swagger code generator program (2.4.18).
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
package org.lockss.laaws.poller.api;
import org.lockss.ws.entities.VoteWsResult;
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;
@Api(value = "votes", description = "the votes API")
@RequestMapping(value = "")
public interface VotesApi {
VotesApiDelegate getDelegate();
@ApiOperation(value = "Query for vote properties", nickname = "getVotes", notes = "Query for votes that meet a set of specified conditions", response = VoteWsResult.class, responseContainer = "List", authorizations = {
@Authorization(value = "basicAuth")
}, tags={ "service", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Information about the requested votes", response = VoteWsResult.class, responseContainer = "List"),
@ApiResponse(code = 400, message = "Bad Request"),
@ApiResponse(code = 401, message = "Unauthorized"),
@ApiResponse(code = 500, message = "Internal Server Error") })
@RequestMapping(value = "/votes",
produces = { "application/json" },
method = RequestMethod.GET)
default ResponseEntity> getVotes(@NotNull @ApiParam(value = "The query that specifies the votes to be returned", required = true) @Valid @RequestParam(value = "voteQuery", required = true) String voteQuery) {
return getDelegate().getVotes(voteQuery);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy