If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Designing a URL structure for a REST interface is harder than it might seem.
The complexity arises when you’re dealing with relationships.
/guest/123/note/Â — is good for listing the notes for a specific guest.
but when you want to delete or update a note
/guest/123/note/456 — the guest id is redundant.
Also, creating a note
/guest/123/note — means you’re splitting up the data, passing some of it through the URL and some through POST parameters.

0 comments ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment