1. HTTP, REST and the PATCH verb (accompanied by kittens) Thomas Parslow @almostobsolete http://almostobsolete.net
2.
3.
4.
5. Current main HTTP verbs GET PUT DELETE POST Show! Replace! Destroy! Do stuff!
6. Why REST? Trendy buzzword Discoverable, self describing APIs Less special cases and one offs More maintanable Less code!
7. Real world example: Telephone conference control Conference Caller Get conference details ( GET ) Lock/Unlock Record On/ Record Off End conference Add caller (dialout) Get List Of Callers Evict caller Mute Caller Unmute caller
9. Real world example: Telephone conference control Conference Caller Get conference details ( GET ) Lock/Unlock ( PUT ) Record On/ Record Off ( PUT ) End conference ( DELETE ) Get caller details ( GET ) Evict caller ( DELETE ) Mute Caller ( PUT ) Unmute caller ( PUT ) Caller List Get list of callers ( GET ) Add caller (dialout) ( POST )