Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

TechTalk#3: REST

486 views

Published on

Share our experience working with RESTful architecture.

By Alexey Pakholkov

Read more about this and other techtalks in DA-14's blog: http://da-14.com/our-blog/

Published in: Engineering, Technology, Education
  • Be the first to comment

  • Be the first to like this

TechTalk#3: REST

  1. 1. RestFul Aleksey Pakholkov aleksey.pakholkov@gmail.com
  2. 2. API 1. SOAP 2. XML-RPC 3. REST
  3. 3. RestFul? Не, не слышал...
  4. 4. Roy Fielding Roy Thomas Fielding (born 1965) is an American computer scientist, one of the principal authors of the HTTPspecification, an authority on computer network architecture and co-founder of the Apache HTTP Server project.
  5. 5. Why REST? ● Scalability ● Generality ● Independence ● Caching ● Security ● Stateless ● Format(HTML, XML, JSON)
  6. 6. Richardson Maturity Model Level 0 Level 1 - Resources Level 2 - HTTP Verbs Level 3 - Hypermedia Controls
  7. 7. Level 0 HTTP to tunnel RPC
  8. 8. Level 1: Resources
  9. 9. Level 2: HTTP verbs
  10. 10. Level 3: Hypermedia controls
  11. 11. HTTP Method ● GET ● POST ● PUT ● PATCH ● DELETE ● api/resource[/:id]
  12. 12. Hypertext Application Language { "_links": { "self": { "href": "http://bc1.loc/api/v1/users/1/buildings/1/messages" } }, "_embedded": { "messages": [ { "id": 128, "subject": "Test Create 16-10", "_embedded": { "lastPost": { "id": 51, "body": "12312123", ................... }, "_links": { "self": { "href": "http://bc1.loc/api/v1/users/1/messages/128/posts/51" } } }, ...........................
  13. 13. Example
  14. 14. ….Cloud ● AbstractRestfulController ● PhlyRestfully ● CustomRestfully
  15. 15. Problems ● Authentication ● ???
  16. 16. Questions

×