Rest Api

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

What is an API in simple terms?

API stands for application programming interface. It allows two applications to


communicate with one another to access data. Every action you take on your
phone, like sending a direct message or checking the score of the baseball game,
uses an API to access and deliver that information

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.

“Api’s Used for data sending and receiving”

What is REST API and why it is used?


A RESTful API is an architectural style for an application program interface (API)
that uses HTTP requests to access and use data. That data can be used to GET,
PUT, POST and DELETE data types, which refers to the reading, updating,
creating, and deleting of operations concerning resources.

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.

What is REST API example?


For example, a REST API would use a GET request to retrieve a record, a POST
request to create one, a PUT request to update a record, and a DELETE request to
delete one. All HTTP methods can be used in API calls. A well-designed REST
API is like a website running in a web browser with built-in HTTP functionality.
Figure 1. Rest Api, s Architecture

What is REST API how it works?


How Does REST API work?

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.

What format of Rest api’s Data?

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?

Tools that used for Api’s


How api’s Testing Perform Through Postman Tool
Step. 1
Install Postman Desktop app / add in google extension.

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

You might also like