Well-defined HTTP APIs and Webmachine
Last week I held a talk about building web APIs and using HTTP properly while doing it.
Basically, it was a talk about Webmachine and its Ruby implementation. It’s a very interesting library that you should definitely check out if you want to explore how to build HTTP APIs differently. Much more so than Sinatra or Grape.
In short, it encodes the HTTP protocol in a state machine, and guides you in crafting well defined HTTP responses by exposing state machine transitions as method stubs.
Originally published at pltconfusion.com.