More Related Content
Similar to A Practical Guide To Hypermedia APIs - Philly.rb
Similar to A Practical Guide To Hypermedia APIs - Philly.rb (20)
More from SmartLogic (20)
A Practical Guide To Hypermedia APIs - Philly.rb
- 2. Eric Oestrich
SmartLogic Solutions
http://www.smartlogicsolutions.com
@ericoestrich
github.com/oestrich
- 4. NerdWord
github.com/smartlogic/nerdword
github.com/smartlogic/nerdword-api
github.com/smartlogic/nerdword-client-ruby
- 11. See It In Action
https://github.com/smartlogic/nerdword-api/
blob/master/script/client.rb
- 15. Example HAL
{
"status": "Processing",
"_embedded": {
"items": [
{
"name": "Book",
"_links":{ "self": { "href" => "http://example.com/items/1" }
}
}
]
},
"_links": {
"self" => { "href" => "http://example.com/orders/1" }
}
}
- 20. Serializers
Disable root
Links
Embedded resources
Changing serializer representations
- 22. Basics
Faraday
Basic auth over SSL
Handle link traversal
- 23. Resources
Data only
Convenience methods
Links
- 26. Helpful Resources
â Creating a Hypermedia Client
â http://blog.oestrich.org/2012/12/creating-a-hypermedia-
client/
â ActiveModel::Serializers
â https://github.com/rails-api/active_model_serializers
â Abusing ActiveModel::Serializers for HAL
â http://blog.oestrich.org/2012/10/abusing-active-model-
serializers-for-hal/
â httpstatus.es
- 27. Useful Gems for APIs
rspec_api_documentation
raddocs
letter
json_spec
vcr
webmock
cane