Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
35 views

Rest API Testing Using Postman

Rest API testing using Postman There are two main types of APIs: SOAP APIs which are legacy and have many restrictions, and REST APIs which are lightweight and widely used by companies like Google and Facebook. REST APIs allow flexible coding and help solve problems like allowing different frontends to communicate with the same backend database through a common API. The four main HTTP methods for interacting with REST APIs are GET, POST, PUT, and DELETE, known as CRUD operations, which are used respectively to retrieve, create, update, and delete data.

Uploaded by

amar mandal
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Rest API Testing Using Postman

Rest API testing using Postman There are two main types of APIs: SOAP APIs which are legacy and have many restrictions, and REST APIs which are lightweight and widely used by companies like Google and Facebook. REST APIs allow flexible coding and help solve problems like allowing different frontends to communicate with the same backend database through a common API. The four main HTTP methods for interacting with REST APIs are GET, POST, PUT, and DELETE, known as CRUD operations, which are used respectively to retrieve, create, update, and delete data.

Uploaded by

amar mandal
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 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