Rest in design

1,186 views
1,123 views

Published on

REST workshop for design

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,186
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
52
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Rest in design

  1. 1. REST<br />IN DESIGN<br />@diego_pacheco<br />
  2. 2. 2000<br />
  3. 3.
  4. 4. #FACTS<br /><ul><li> 85% of Amazon services usage is of the REST interface
  5. 5. Google Deprecates Their SOAP Search API</li></li></ul><li>Representational State Transfer<br />
  6. 6. Roy Fielding<br />
  7. 7. HTTP<br />
  8. 8. POX + POST + HTTP = REST<br />
  9. 9. POX + POST + HTTP = REST<br />
  10. 10. RESOURCES<br />
  11. 11. RESOURCES(Server thinks before do)<br />
  12. 12. Nouns or Verbs ?<br />
  13. 13. Hypermedia<br />REST<br />Verbs + hm<br />Media Types<br />
  14. 14. ROA & WOA<br />
  15. 15.
  16. 16.
  17. 17. Client<br />Server<br />
  18. 18. SOC<br />Uniform Interface<br />Portability<br />Scalable<br />Client<br />Server<br />
  19. 19. Stateless<br />
  20. 20. Client<br />Server<br />(Stateful)<br />Stateless<br />
  21. 21. Cacheable<br />
  22. 22. Client<br />Server<br />
  23. 23. HTTP HEADERS(not only uris)<br />
  24. 24. HTTP METHODS<br />
  25. 25.
  26. 26. Idempotent <br />
  27. 27. SAMPLE<br />
  28. 28.
  29. 29.
  30. 30.
  31. 31.
  32. 32.
  33. 33. BEYOND XML<br />
  34. 34.
  35. 35. HTTP RESPONSE CODES<br />
  36. 36.
  37. 37.
  38. 38.
  39. 39.
  40. 40. JSR 311<br />JAX-RS: The JavaTM API for RESTful Web Services<br />
  41. 41. ANNOTATIONS<br />
  42. 42. @GET<br />@POST<br />@PUT<br />@DELETE<br />@HEAD<br />@Path<br />@Produces<br />@Consumes<br />@Context<br />@PathParam<br />@HeaderParam<br />@CookieParam<br />@QueryParam<br />
  43. 43. WADL<br />
  44. 44.
  45. 45.
  46. 46. GET /customers/1/order/2/price/2000/weight/2<br />
  47. 47. Exceptions -> Error Code<br />
  48. 48. Parameters<br />
  49. 49. Filters<br />
  50. 50. RESTful services without annotations<br />
  51. 51. web.xml<br />
  52. 52. ProgrammaticallyExposure<br />
  53. 53. ATOMPUB<br />
  54. 54.
  55. 55.
  56. 56. HANDS ON<br />
  57. 57. Pair Programming Exercise !<br />TOLL REST SERVICE<br />
  58. 58. Vehicle Taxes Rates<br />U$ 1.59<br />U$ 2.11<br />TOLL REST SERVICE<br />U$ 1.00<br />U$ 3.95 **<br />U$ 0.45<br />http://diegopacheco.svn.beanstalkapp.com/sandbox/trunk/toll-rest-service-pprog<br />
  59. 59. REST<br />IN DESIGN<br />THANK YOU!<br />@diego_pacheco<br />

×