Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polish petclinic RESTful URIs [SPR-5487] #10159

Closed
spring-projects-issues opened this issue Feb 13, 2009 · 1 comment
Closed

Polish petclinic RESTful URIs [SPR-5487] #10159

spring-projects-issues opened this issue Feb 13, 2009 · 1 comment

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Feb 13, 2009

Chris Beams opened SPR-5487 and commented


This issue is a sub-task of #10156

Referenced from: commits 3ddd089

@spring-projects-issues
Copy link
Collaborator Author

Chris Beams commented

Per revision 635:

Polishing the new RESTful interface to the petclinic webapp:

  • Eliminated redundant 'clinic' servlet mapping (was: http://localhost:8080/petclinic/clinic/owners; now: http://localhost:8080/petclinic/owners)
  • A parameterless GET for /owners now returns the list of all owners, rather than an error.
  • /owners/form is now /owners/search (distinguishes the 'search form' resource from the 'edit owner form' resource)
  • Eliminated any need for redirects, <welcome-file-list/>, and index.jsp. Deleted all of them.
  • Updated /owners/{oid}/edit to submit using PUT instead of POST
  • Updated URI for edit pet form from /owners/{oid}/pets/{pid} to /owners/{oid}/pets/{pid}/edit (the edit form is a distinct resource)
  • Updated /owners/{oid}/pets/{pid}/edit to submit using PUT instead of POST

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant