Talking Heads: the REST api 'psycho killer'
By Theo van Hoesel (vanHoesel) from Amsterdam.pm, Groningen.pm, AmsterdamX.pm, London.pm
Date: Saturday, 8 November 2014 13:30
Duration: 50 minutes
Target audience: Intermediate
Language: English
Tags: api client codes communication headers http protocols rest server status
You can find more information on the speaker's site:
- Abstract: https://github.com/THEMA-MEDIA/Dancer2-Plugin-HTTP-Auth-Extensible
- Talk: http://www.slideshare.net/theovanhoesel/talking-heads-writing-an-api-does-not-need-to-be-a-psycho-killer
In a world where things get more and more connected to services there is a dire need to understand the principals off HTTP protocols. It is simply not enough to 'just return' some data and expect the the client knows what to do.
Proper clients, wether it is a 'thing' or 'software' can intelligently communicate with servers. And servers should take the responsibility to give clear answers.... or let the client know that it is not fully clear what the client requested.
This talk is a brief overview on how client and server communicate with each other concerning caching, content-negociation and the methods provided. Its all about what is going on inside the HEADs when client and server are TALKING http.
Then there is Web::Machine, based on Basho's work. It brings structure in the whole decision tree of what is happening with all the Request Header Fileds. A nice work from, but arguably, it has some weak spots.
And of course a great new module for Dancer2 will be introduced: Dancer2::Plugin::HTTP::Auth::Extensible, the first of a series that will make life easy when developing REST api's with Dancer
Attended by: Theo van Hoesel (vanHoesel), Theo van Hoesel (vanHoesel), Stevan Little (stevan), Tamara Kaufler, Pierre Masci (mascip), Umair Dojki, Brian Manning (xaoc), Dave Cross (davorg), Marco Fontani (mfontani), Ian Brierley, Michael Jemmeson (michael), Warren Humphreys (woz), Hugo Areias (hugoareias), Søren Lund (slu),