@RestController @Generated(value="com.github.davidmoten:openapi-codegen-runtime:0.1.5") public class ServiceController extends Object implements ControllerExceptionHandler
| Constructor and Description |
|---|
ServiceController(Service service) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<?> |
bytesGet()
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
defaultErrorGet()
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
emptyGet()
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
item201Get()
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
itemGet()
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
jsonStringGet()
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
parameterNameCollisionGet(String a,
String a2)
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
paramRefGet(String id,
OffsetDateTime first)
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
paramsGet(String id,
OffsetDateTime first,
Optional<Long> second,
int third)
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
paramsIdGet(String id,
String apiKey,
String bickie)
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
pointsGet(Point a,
Point b)
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
queryObjectGet(QueryObjectGetIdParameterId id)
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
requestBodyMultiTypePost(RequestBody1 requestBody)
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
requestBodyNotRequiredPost(Optional<RequestBody2> requestBody)
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
requestBodyRefPost(RequestBody1 requestBody)
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
requestBodyRequiredPost(RequestBody1 requestBody)
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
responseMultiTypeGet(String accept,
String username)
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
responseRef2Get()
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
responseRefGet()
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
textGet()
Returns response from call to path %s.
|
org.springframework.http.ResponseEntity<?> |
uploadImagePost()
Returns response from call to path %s.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleBadRequestExceptionpublic ServiceController(@Autowired(required=false)
Service service)
@RequestMapping(method=POST,
value="/requestBodyRequired",
consumes="application/json",
produces="application/json")
public org.springframework.http.ResponseEntity<?> requestBodyRequiredPost(@RequestBody
RequestBody1 requestBody)
Returns response from call to path %s.
[status=200, application/json] --> Response1
[status=default, application/json] --> Error
requestBody - requestBody@RequestMapping(method=POST,
value="/requestBodyNotRequired",
consumes="application/json",
produces="application/json")
public org.springframework.http.ResponseEntity<?> requestBodyNotRequiredPost(@RequestBody
Optional<RequestBody2> requestBody)
Returns response from call to path %s.
[status=200, application/json] --> Response2
[status=default, application/json] --> Error
requestBody - requestBody@RequestMapping(method=POST,
value="/requestBodyRef",
consumes="application/json",
produces="application/json")
public org.springframework.http.ResponseEntity<?> requestBodyRefPost(@RequestBody
RequestBody1 requestBody)
Returns response from call to path %s.
[status=200, application/json] --> Response1
[status=default, application/json] --> Error
requestBody - requestBody@RequestMapping(method=GET,
value="/responseMultiType",
produces={"application/json","application/octet-stream"})
public org.springframework.http.ResponseEntity<?> responseMultiTypeGet(@RequestHeader(name="Accept",defaultValue="application/json",required=false)
String accept,
@RequestParam(name="username",required=true)
String username)
Returns response from call to path %s.
[status=200, application/json] --> Response1
[status=200, application/octet-stream] --> byte[]
[status=default, application/json] --> Error
username - usernameaccept - accept@RequestMapping(method=GET,
value="/bytes",
produces="application/octet-stream")
public org.springframework.http.ResponseEntity<?> bytesGet()
Returns response from call to path %s.
[status=200, application/octet-stream] --> RequestBodyMultiTypePostRequestApplicationOctetStream
[status=default, application/json] --> Error
@RequestMapping(method=POST,
value="/uploadImage",
consumes="image/png",
produces="application/json")
public org.springframework.http.ResponseEntity<?> uploadImagePost()
Returns response from call to path %s.
[status=200, application/json] --> byte[]
@RequestMapping(method=GET,
value="/defaultError",
produces="application/json")
public org.springframework.http.ResponseEntity<?> defaultErrorGet()
Returns response from call to path %s.
[status=200, application/json] --> Response1
[status=default, application/json] --> Error
@RequestMapping(method=GET,
value="/text",
produces="text/plain")
public org.springframework.http.ResponseEntity<?> textGet()
Returns response from call to path %s.
[status=200, text/plain] --> Name
[status=default, application/json] --> Error
@RequestMapping(method=GET,
value="/jsonString",
produces="application/json")
public org.springframework.http.ResponseEntity<?> jsonStringGet()
Returns response from call to path %s.
[status=200, application/json] --> Name
[status=default, application/json] --> Error
@RequestMapping(method=POST,
value="/requestBodyMultiType",
consumes={"application/json","application/octet-stream"},
produces="application/json")
public org.springframework.http.ResponseEntity<?> requestBodyMultiTypePost(@RequestBody
RequestBody1 requestBody)
Returns response from call to path %s.
[status=200, application/json] --> Response1
[status=default, application/json] --> Error
requestBody - requestBody@RequestMapping(method=GET,
value="/item",
produces="application/json")
public org.springframework.http.ResponseEntity<?> itemGet()
Returns response from call to path %s.
[status=200, application/json] --> Response2
[status=default, application/json] --> Error
@RequestMapping(method=GET,
value="/item201",
produces="application/json")
public org.springframework.http.ResponseEntity<?> item201Get()
Returns response from call to path %s.
[status=201, application/json] --> Response2
[status=default, application/json] --> Error
@RequestMapping(method=GET,
value="/responseRef",
produces="application/json")
public org.springframework.http.ResponseEntity<?> responseRefGet()
Returns response from call to path %s.
[status=200, application/json] --> Response2
[status=default, application/json] --> Error
@RequestMapping(method=GET,
value="/responseRef2",
produces="application/json")
public org.springframework.http.ResponseEntity<?> responseRef2Get()
Returns response from call to path %s.
[status=200, application/json] --> Response4
[status=default, application/json] --> Error
@RequestMapping(method=GET,
value="/empty")
public org.springframework.http.ResponseEntity<?> emptyGet()
Returns response from call to path %s.
[status=default, application/json] --> Error
@RequestMapping(method=GET,
value="/params",
produces="application/json")
public org.springframework.http.ResponseEntity<?> paramsGet(@RequestParam(name="id",required=true)
String id,
@RequestParam(name="first",required=true)
OffsetDateTime first,
@RequestParam(name="second",required=false)
Optional<Long> second,
@RequestParam(name="third",defaultValue="10",required=false)
int third)
Returns response from call to path %s.
[status=203, application/json] --> Response2
[status=default, application/json] --> Error
third - thirdid - idfirst - firstsecond - second@RequestMapping(method=GET,
value="/params/{id}",
produces="application/json")
public org.springframework.http.ResponseEntity<?> paramsIdGet(@PathVariable(name="id",required=true)
String id,
@RequestHeader(name="ApiKey",required=true)
String apiKey,
@CookieValue(name="bickie",required=true)
String bickie)
Returns response from call to path %s.
[status=200, application/json] --> Response2
[status=default, application/json] --> Error
apiKey - apiKeybickie - bickieid - id@RequestMapping(method=GET,
value="/query-object")
public org.springframework.http.ResponseEntity<?> queryObjectGet(@ModelAttribute(name="id")
QueryObjectGetIdParameterId id)
Returns response from call to path %s.
id - id@RequestMapping(method=GET,
value="/points")
public org.springframework.http.ResponseEntity<?> pointsGet(@ModelAttribute(name="a")
Point a,
@ModelAttribute(name="b")
Point b)
Returns response from call to path %s.
a - ab - b@RequestMapping(method=GET,
value="/paramRef",
produces="application/json")
public org.springframework.http.ResponseEntity<?> paramRefGet(@RequestParam(name="id",required=true)
String id,
@RequestParam(name="first",required=true)
OffsetDateTime first)
Returns response from call to path %s.
[status=203, application/json] --> Response2
[status=default, application/json] --> Error
id - idfirst - first@RequestMapping(method=GET,
value="/parameterNameCollision")
public org.springframework.http.ResponseEntity<?> parameterNameCollisionGet(@RequestParam(name="a",required=true)
String a,
@RequestParam(name="A",required=true)
String a2)
Returns response from call to path %s.
a2 - a2a - aCopyright © 2023. All rights reserved.