Skip to content

Instantly share code, notes, and snippets.

@edueo
Last active August 29, 2015 14:04
Show Gist options
  • Save edueo/b9550e420aef8c0cd039 to your computer and use it in GitHub Desktop.
Save edueo/b9550e420aef8c0cd039 to your computer and use it in GitHub Desktop.
URI Design

URI Design

Resource GET (read) POST (create) PUT (update) DELETE (delete)
/customers Get List Create Item Update Batch Error
/customers/123 Get Item Error Update Item Delete Item

O que retornar ?

Resource GET (read) POST (create) PUT (update) DELETE (delete)
/customers List New item Status Code Only Status Code Only*
/customers/123 Item Status Code Only* Update Item Status Code Only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment