Getting Started with REST API Testing
A REST API defines a set of operations where developers can perform requests and receive
responses via HTTP protocol
Weather report:
• REST stands for Representational state transfer
• Because REST API’s use HTTP, they can be used by practically any programming language
• It acts as medium to propagate communication between the client and server applications on
the World Wide Web
• Stateless – No client data is stored on the server between requests and session state is stored
on the client.
• http is the transport protocol for REST
Examples :
The Twitter REST API
Facebook REST API (deprecating)
Google Translate REST API
Flickr REST API
Dropbox REST API
The key principles of REST are as follows:
• Represent everything with a unique ID; a URI
• Stateless communication
• Make use of standard HTTP methods such as GET, POST, DELETE, and PUT
GET- The GET method is used to extract information from the given server using a given URI. While using
GET request, it should only extract data and should have no other effect on the data.
No Payload/Body required
POST- A POST request is used to send data to the server, for example, customer information, file upload,
etc. using HTML forms.
PUT- Replaces all current representations of the target resource with the uploaded content.
DELETE- Removes all current representations of the target resource given by a URI.
• Resources can have multiple representations