com.github.dinuta.estuary.testrunner.api.CommandApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testrunner Show documentation
Show all versions of testrunner Show documentation
RestAPI service which runs commands and tests
The newest version!
/**
* NOTE: This class is auto generated by the swagger code generator program (2.4.13).
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
package com.github.dinuta.estuary.testrunner.api;
import com.github.dinuta.estuary.testrunner.model.ApiResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponses;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
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 javax.validation.Valid;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2020-06-14T18:02:50.529Z")
@Api(value = "command", description = "the command API")
@RequestMapping(value = "")
public interface CommandApi {
@ApiOperation(value = "Starts multiple commands in blocking mode sequentially. Set the client timeout at needed value.", nickname = "commandPost", notes = "", response = ApiResponse.class, tags = {"estuary-testrunner",})
@ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "commands start success", response = ApiResponse.class),
@io.swagger.annotations.ApiResponse(code = 404, message = "commands start failure", response = ApiResponse.class)})
@RequestMapping(value = "/command",
produces = {"application/json"},
consumes = {"text/plain", "application/json", "application/x-www-form-urlencoded"},
method = RequestMethod.POST)
default ResponseEntity commandPost(@ApiParam(value = "Commands to run. E.g. ls -lrt", required = true) @Valid @RequestBody String commands, @ApiParam(value = "") @RequestHeader(value = "Token", required = false) String token) {
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
}
}