Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

RESTFul api

Apresentação sobre RESTFul apresentada na Sexta do Conhecimento promovida pelo ITEC

Audiolibros relacionados

Gratis con una prueba de 30 días de Scribd

Ver todo
  • Sé el primero en comentar

  • Sé el primero en recomendar esto

RESTFul api

  1. 1. RESTFUL WEBSERVICES Fernando Oliveira
  2. 2. Web Services
  3. 3. Internet Web Service Database File System
  4. 4. REpresentational State Transfer REST https://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm "architectural style for distributed hypermedia systems” (Roy Thomas Fielding)
  5. 5. Implementation in accordance with REST
  6. 6. REST Constraints
  7. 7. Client-Server 1
  8. 8. Stateless 2
  9. 9. Isolated Requests All requests must to have all information needed to process the requested operation
  10. 10. Cache 3
  11. 11. Uniform Interfaces 4
  12. 12. “Any information that can be named can be a resource: a document or image, a temporal service, a collection of other resources, a non-virtual object (e.g. a person), and so on. A resource is a conceptual mapping to a set of entities, not the entity that corresponds to the mapping at any particular point in time. Roy Fielding https://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm
  13. 13. GET | POST http://www.example.com/customers GET | PUT | DELETE http://www.example.com/customers/33245 Recursos
  14. 14. ➤ Removes a Resource ➤ Updates an existing Resource ➤ Creates a new Resource ➤ Retrieves a Resource ➤ CacheableGET POST PUT DELETE
  15. 15. HATEOASHATEOAS - Hipermedia As The Engine Of Application State GET /items?q=macbook+air { “results”: [ { “_links”: [ { “rel”: “self”, “uri”: “/items/123“ }, { “rel”: “bids”, “uri”: “/items/123/bids“ }, { “rel”: “win”, “uri”: “/items/123/bids?q=win“ } ], “name”: “Macbook Air 2010 new”, “price”: “2300” } ] }
  16. 16. Layered System 5
  17. 17. Code on Demand (Optional)6
  18. 18. The Optional code on demand constraint allows clients to request and execute code from servers. This, in turn, allows the server to deploy new features to clients.
  19. 19. EXEMPLOS

×