0% found this document useful (0 votes)
101 views

Getting Started With REST API Testing

The document discusses REST (REpresentational State Transfer) APIs and their key principles. REST APIs use the HTTP protocol to define operations that allow programming languages to make requests and receive responses. They act as an intermediary between client and server applications, following principles like being stateless, using unique IDs to represent resources, and standard HTTP methods like GET, POST, PUT, and DELETE.

Uploaded by

Muhammad Usuf
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
101 views

Getting Started With REST API Testing

The document discusses REST (REpresentational State Transfer) APIs and their key principles. REST APIs use the HTTP protocol to define operations that allow programming languages to make requests and receive responses. They act as an intermediary between client and server applications, following principles like being stateless, using unique IDs to represent resources, and standard HTTP methods like GET, POST, PUT, and DELETE.

Uploaded by

Muhammad Usuf
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like