Rest Api
Rest Api
Rest Api
How it works?
API stands for Application Programming Interface. An API is a software
intermediary that allows two applications to talk to each other. In other words, an
API is the messenger that delivers your request to the provider that you’re
requesting it from and then delivers the response back to you.
a. Rest Api’s are mostly used for backend testing of web application.
b. For UI Testing we normally used Different tools and create test case.
c. UI testing cost very large as compared api testing.
A REST API works essentially the same way that any website does. A call is made
from a client to a server, and data is received back over the HTTP protocol.
The REST architecture allows API providers to deliver data in multiple formats
such as plain text, HTML, XML, YAML, and JSON, which is one of its most
loved features of rest api.
Figure 2. How Rest Api’s Work
Comparison Between Rest Api and SOAP
Why Mostly Used Rest Api’s?
Step. 2
a. Create new Request
b. Select method
c. Put website URL
d. Click on send button
Please Follow Red Font that mention all steps one by one in diagram
Step. 3
When perform rest api testing and select GET method for test a website that
contain URL “contegris.com” then we received following data that represent in
diagram.
So, we also perform other method of postman api tools like POST, CREATE,
DELETE, for testing different functionality of website according to requirements.
Read More For about different https status code that we test when we perform rest
api testing of web application.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
Step. 4