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,
|
@RequestMapping(value = "/owner/{ownerId}", method = RequestMethod.GET)
|
||||||
produces = MediaType.APPLICATION_JSON_VALUE)
|
|
||||||
public Owner findOwner(@PathVariable("ownerId") int ownerId) {
|
public Owner findOwner(@PathVariable("ownerId") int ownerId) {
|
||||||
return retrieveOwner(ownerId);
|
return retrieveOwner(ownerId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/owner/list", method = RequestMethod.GET,
|
@RequestMapping(value = "/owner/list", method = RequestMethod.GET)
|
||||||
produces = MediaType.APPLICATION_JSON_VALUE)
|
|
||||||
public Collection<Owner> findOwnerCollection(@RequestParam("lastName") String ownerLastName) {
|
public Collection<Owner> findOwnerCollection(@RequestParam("lastName") String ownerLastName) {
|
||||||
|
|
||||||
if (ownerLastName == null) {
|
if (ownerLastName == null) {
|
||||||
|
|
Loading…
Reference in a new issue