mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-12 04:51:11 +00:00
Fix content negotiation for /vets
See gh-326
This commit is contained in:
parent
6905e38c1f
commit
8eb5074770
3 changed files with 4 additions and 5 deletions
|
|
@ -48,7 +48,7 @@ class VetController {
|
|||
return "vets/vetList";
|
||||
}
|
||||
|
||||
@GetMapping({ "/vets.json", "/vets.xml" })
|
||||
@GetMapping({ "/vets" })
|
||||
public @ResponseBody Vets showResourcesVetList() {
|
||||
// Here we are returning an object of type 'Vets' rather than a collection of Vet
|
||||
// objects so it is simpler for JSon/Object mapping
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue