template update

This commit is contained in:
Tony Tam 2015-05-12 06:04:44 -04:00
parent 1912973d36
commit dae01b5043
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);