mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:15:50 +00:00
removing MediaType declaration
This commit is contained in:
parent
fedb7d43fc
commit
3d6685d0ae
1 changed files with 2 additions and 4 deletions
|
@ -71,14 +71,12 @@ public class OwnerResource {
|
|||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/owner/{ownerId}", method = RequestMethod.GET,
|
||||
produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
@RequestMapping(value = "/owner/{ownerId}", method = RequestMethod.GET)
|
||||
public Owner findOwner(@PathVariable("ownerId") int ownerId) {
|
||||
return retrieveOwner(ownerId);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/owner/list", method = RequestMethod.GET,
|
||||
produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
@RequestMapping(value = "/owner/list", method = RequestMethod.GET)
|
||||
public Collection<Owner> findOwnerCollection(@RequestParam("lastName") String ownerLastName) {
|
||||
|
||||
if (ownerLastName == null) {
|
||||
|
|
Loading…
Reference in a new issue