api-presentation
api-presentation copied to clipboard
The code for "EasyContacts", an API I created for a Ruby Meetup Talk.
I cannot post/get any contacts **Request** ``` { "contact": { "name": "Jeremy Kemper", "email": "a", "twitter": "@bitsweat" } } ```
Devise token based Authentication for easy contact application
http://localhost:3000/api/v1/contacts/ Rake routes: Prefix Verb URI Pattern Controller#Action api_v1_contacts GET /api/v1/contacts(.:format) api/v1/contacts#index {:format=>:json} POST /api/v1/contacts(.:format) api/v1/contacts#create {:format=>:json} api_v1 GET /api/v1/contacts/:id(.:format) api/v1/contacts#show {:format=>:json} PUT /api/v1/contacts/:id(.:format) api/v1/contacts#update {:format=>:json} DELETE /api/v1/contacts/:id(.:format) api/v1/contacts#destroy {:format=>:json}