You are on page 1of 8

Rest API testing using Postman

What is API
 An application programming interface (API) is a connection
between computers or between computer programs. It is a type of
software interface, offering a service to other pieces of software. A
document or standard that describes how to build such a connection or
interface is called an API specification. A computer system that meets
this standard is said to implement or expose an API. The term API may
refer either to the specification or to the implementation.

 Soap API: It’s a legacy API also called soap services used since ages, it
has a lot of restrictions and conditions to fulfill authorization. Companies
using Soap API Insoft, akelious etc.

 Rest API: It’s a light weight API used extensively in the industry. It has a
flexible way of coding. Companies using Rest API: Google, Facebook etc.
Introduction of Rest API in Project Architecture

Backend
code(java)
Createreservati
Front end website
on()
(Java Technology)
{
//code
}

Database(stores
data)
Problem#1
Marriot.com
Backend
code(java)
Front end website Createreservati
(Java Technology) on()
Bookings.com {
//code
}

Database(stores
data)
Problem#2
Bookings.com
Backend
code(java)
Front end website Createreservati
(Angular-Typescript) on()
Bookings.com {
//code
}

Database(stores
data)
Problem#2
Bookings.com
http
Backend
Front end website request code(java)
(Angular-Typescript) Bookings Createreservati
Bookings.com http API on()
response {
//code
}

Database(stores
data)
Problem#2
Marriot.com
http
Backend
Front end website request code(java)
(Angular-Typescript) Bookings Createreservati
Makemytrip.com http API on()
response {
//code
}

Database(stores
data)
Understanding GET, POST, PUT, DELETE
http CRUD operations of API
 Endpoint/Base URI: Address where API is hosted on server.
 CRUD – Create(POST), Retrieve(GET), Update(PUT), Delete(DELETE)
 GET – The GET method is used to extract information from given server using a
URI. While using GET request, should extract only data and should have no other
effect on data. We can send input in GET using query parameters.
 POST – A POST request is used to send data on server. For ex: customer
information, file upload etc. using HTML forms.

You might also like