Võ Văn Hải's blog

Chỉ có một điều tuyệt đối đó là mọi thứ đều tương đối…

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


2 Responses to “RESTful Web Service”

  1. 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

  2. […] https://vovanhai.wordpress.com/web-services/java-web-services/restful-web-service/ […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: