forked from loafle/openapi-generator-original
template update
This commit is contained in:
parent
1912973d36
commit
dae01b5043
@ -73,7 +73,7 @@ public class PetApi {
|
||||
produces = { "application/json", "application/xml" },
|
||||
|
||||
method = RequestMethod.GET)
|
||||
public ResponseEntity<Pet> findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter") @RequestParam("status") List<String> status)
|
||||
public ResponseEntity<Pet> findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter") @RequestParam(value = "status", required = false) List<String> status)
|
||||
throws NotFoundException {
|
||||
// do some magic!
|
||||
return new ResponseEntity<Pet>(HttpStatus.OK);
|
||||
@ -89,7 +89,7 @@ public class PetApi {
|
||||
produces = { "application/json", "application/xml" },
|
||||
|
||||
method = RequestMethod.GET)
|
||||
public ResponseEntity<Pet> findPetsByTags(@ApiParam(value = "Tags to filter by") @RequestParam("tags") List<String> tags)
|
||||
public ResponseEntity<Pet> findPetsByTags(@ApiParam(value = "Tags to filter by") @RequestParam(value = "tags", required = false) List<String> tags)
|
||||
throws NotFoundException {
|
||||
// do some magic!
|
||||
return new ResponseEntity<Pet>(HttpStatus.OK);
|
||||
|
@ -86,8 +86,8 @@ public class UserApi {
|
||||
produces = { "application/json", "application/xml" },
|
||||
|
||||
method = RequestMethod.GET)
|
||||
public ResponseEntity<String> loginUser(@ApiParam(value = "The user name for login") @RequestParam("username") String username,
|
||||
@ApiParam(value = "The password for login in clear text") @RequestParam("password") String password)
|
||||
public ResponseEntity<String> loginUser(@ApiParam(value = "The user name for login") @RequestParam(value = "username", required = false) String username,
|
||||
@ApiParam(value = "The password for login in clear text") @RequestParam(value = "password", required = false) String password)
|
||||
throws NotFoundException {
|
||||
// do some magic!
|
||||
return new ResponseEntity<String>(HttpStatus.OK);
|
||||
|
Loading…
x
Reference in New Issue
Block a user