top of page
vanditakambiri

What is REST API Testing?

What is REST API Testing?

REST API Testing is open-source web automation testing technique that is used for testing RESTful APIs for web applications. The purpose of rest api testing is to record the response of rest api by sending various HTTP/S requests to check if rest api is working fine or not. Rest api testing is done by GET, POST, PUT and DELETE methods. Rest stands for Representational State Transfer. It is an architectural style and an approach for communication used in the development of Web Services.



Types of API Methods

There are mainly 4 types of API Testing methods: GET, POST, Delete,PUT and PATCH.

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

  • POST– A POST request is used to create a new entity. It can also be used to send data to the server, for example, customer information, file upload, etc. using HTML forms.

  • PUT– Create a new entity or update an existing one.

  • PATCH: This type of request manage iterative updates.

  • DELETE– Removes all current representations of the target resource given by a URI.


HTTP status codes
  • 1xx (100-199): An informative statement

  • 2xx (200-299): Successful response verified

  • 3xx (300-399): Additional action needed to fulfill the request

  • 4xx (400-499): The syntax is incorrect, and the server cannot fulfill the request

  • 5xx (500-599): The server has completely failed to complete the request


API Testing Tools

10 views0 comments

Recent Posts

See All

Comments


bottom of page