RESTful Web Service
Giới thiệu
RESTful web services are services built using the RESTful architectural style. Building web services using the RESTful approach is emerging as a popular alternative to using SOAP-based technologies for deploying services on the internet, due to its lightweight nature and the ability to transmit data directly over HTTP.
The IDE supports rapid development of RESTful web services using JSR 311 – Java API for RESTful Web Services (JAX-RS) and Jersey, the reference implementation for JAX-RS.
- REpresentational State Transfer
- Name coined by Roy Fielding in his Ph.D thesis*
- Architectural Style of the Web
Các tính chất
- RESTful services are stateless: Each request from client to server must contain all the information necessary to understand the request
- RESTful services have a uniform interface: GET, POST, PUT, and DELETE.
- REST-based architectures are built from resources (pieces of information) that are uniquely identified by URIs:In a RESTful purchasing system, each purchase order has a unique URI
- In REST system, resources are manipulated through the exchange of representations of the resources. For example, a purchase order resource is represented by an XML document. Within a RESTful purchasing system, a purchase order might be updated by posting an XML document containing the changed purchase order to its URI
- REST-based architectures communicate primarily through the transfer of representations of resources
State is maintained within a resource representation
vantu said
chào anh! Hiện em cũng đang theo tìm hiểu về REST, tuy nhiên em có gặp khó khăn trong việc xác định một hệ thống có phải là RESTful hay không? Mong anh có thể chia sẻ với em mọt ít về vấn đề này không ạ
P/s : em vừa mới mail cho anh
RESTful Web Service | Eagle081183's Blog said
[...] http://vovanhai.wordpress.com/web-services/java-web-services/restful-web-service/ [...]