API
API
Software Testing Course Software Engineering Tutorial Software Development Life Cycle Waterfall M
Related searches
Test Automation Framework for Api Testing Api Testing Projects
API Testing refers to test the APIs which are used in the application just
to validate that the APIs are working fine. When a system has a
collection of APIs, these needs to be tested to know that the system is
working perfectly or not. Mostly we can say that API testing confirms
system's performance, reliability, security and functionality. Below list
represents some of the tools which are used for API Testing :
Postman
Katalon Studio
Soap UI
Parasoft
REST assured
Tricentis Tosca
Ping API
Assertible
GUI testing is different from the API testing as GUI testing is present at
Presentation layer where the API testing is present at Business layer. If
we take an example of a typical app then API is the middle layer in
between UI layer and Data base layer and due to this API
communication and data exchange between the applications occur. The
below figure represents the layer at which API testing is performed :
API testing Types : There are multiple types of testing which are most
often used as form of API testing which means during multiple types of
testing simultaneously API can be tested. So below list represents the
types of API testing i.e.
1. Unit Testing
2. Integration Testing
3. End-to-End Testing
4. Performance Testing
5. Functional testing
6. Security Testing
7. Load testing
8. Penetration testing
9. Reliability testing
10. Fuzz testing
Data accuracy.
Response time.
Duplicate or missing functionality.
Authorization checks.
Multithreaded issues.
Security and performance issues.
Error codes if API returns.
Reliability issues.
Performance Issues - API response Time can be very high, and they
may have latency.
Response data may not structure correctly ( JSON or XML )
Security Issues
Incorrect handling of valid argument values
Improper errors/warning to caller
Missing or Duplicate Functionality
Reliability Issues : Difficulty in connecting and getting a response
from API
Similar Reads
Alpha Testing - Software Testing
Alpha Testing is an essential phase in software testing conducted by the
development or QA team before beta testing . It aims to identify and fix…
15+ min read
Registered Address:
K 061, Tower K, Gulshan Vivante
Apartment, Sector 137, Noida, Gautam
Buddh Nagar, Uttar Pradesh, 201305
Advertise with us
Company Explore
About Us Job-A-Thon
Legal Offline Classroom Program
Privacy Policy DSA in JAVA/C++
Careers Master System Design
In Media Master CP
Contact Us Videos
Corporate Solution
Campus Training Program
Tutorials DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android
Full Stack Course HTML CSS JavaScript TypeScript jQuery AngularJS ReactJS Next.js
What is an API?
An API is a set of rules that allow different software applications to
communicate with each other. Think of it like a bridge that connects two
systems and lets them share data or services.
APIs are also crucial in building modern websites, where heavy data
transfers happen between the client (user) and the server.
The difference between an API and a web application is that API allows
two-way communication and web applications are just a way for users
to interact through a web browser. A web application may have an API
to complete the requests.
Types of APIs
There are three basic forms of API -
1. WEB APIs
A Web API also called Web Services is an extensively used API over
the web and can be easily accessed using the HTTP protocols. A Web
application programming interface is an open-source interface and can
be used by a large number of clients through their phones, tablets, or
PCs.
2. LOCAL APIs
In this type of API, the programmers get the local middleware services.
TAPI (Telephony Application Programming Interface), and .NET are
common examples of Local APIs.
3. PROGRAM APIs
Its main feature is that REST API is stateless, i.e., the servers do not
save clients' data between requests.
Open API
Partner API
Internal API
Composite API
SOAP REST
Also, the major difference is that SOAP cannot make use of REST
whereas REST can make use of SOAP. You can also read about the
difference between REST API and SOAP API
Types of Testing:
Unit Testing
Integration Testing
Security Testing
Performance Testing
Functional Testing
Postman
Apigee
JMeter
Ping API
Soap UI
vREST
Private: These APIs are only made for a single person or entity (like a
company that has spent the resources to make it or bought it).
Partner: Just like the name it gives the authority to use APIs to some
partners of entities that own APIs for their private use.
Public: You should be aware of them cause you can only find these
APIs in the market for your own use if you don't own specific API
access from some entity that owns private these APIs for their
private use. An example of a Public API is 'Windows API' by
Microsoft for more public APIs you can visit this GitHub repository ->
https://github.com/public-apis/public-apis .
Advantages of APIs
Efficiency: API produces efficient, quicker, and more reliable results
than the outputs produced by human beings in an organization.
Flexible delivery of services: API provides fast and flexible delivery
of services according to developers' requirements.
Integration: The best feature of API is that it allows the movement of
data between various sites and thus enhances the integrated user
experience.
Automation: As API makes use of robotic computers rather than
humans, it produces better and more automated results.
New functionality : While using API the developers find new tools
and functionality for API exchanges.
Disadvantages of APIs
Cost: Developing and implementing API is costly at times and
requires high maintenance and support from developers.
Security issues: Using API adds another layer of surface which is
then prone to attacks, and hence the security risk problem is common
in APIs.
Conclusion
By now, you must have had a clear idea of What is API? it's working,
types, testing tools used, etc. After understanding these concepts, you
can try working on them by implementing some of the concepts in
projects. Not just theoretical knowledge, you must also have a practical
idea of it by working on it. Developers must have a deep understanding
of APIs in order to implement them.
Comment More info Next Article
Difference between End-to-end
Campus Training Program Testing and Unit Testing
Similar Reads
Types of APIs and Applications of API in Real World
API which stands for Application Programming interface is an interface
between different software so that they can interact with each other ver…
Advertise with us
Company Explore
About Us Job-A-Thon
Legal Offline Classroom Program
Privacy Policy DSA in JAVA/C++
Careers Master System Design
In Media Master CP
Contact Us Videos
Corporate Solution
Campus Training Program
Tutorials DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android
Trending NEWS Blogs Tips & Tricks Website & Apps Tech Tips Tech Blogs ChatGPT Blogs
REST API
REST, or Representational State Transfer, is an architectural style for
building web services. It is mostly used for lightweight and stateless
communication. It uses simple HTTP methods like GET, POST, PUT, and
DELETE to perform operations on the data resources.
Key Concepts
SOAP API
SOAP, or Simple Object Access Protocol, is a messaging protocol. It
allows the exchange of structure information without any platform.
Soap uses the XML data format due to the complexity. It is mostly used
for complex systems with strict standards ensuring security and
reliability.
Key Concepts
SOAP is a protocol as it has some strict rules for data fomat and
communication.
It manages the records and maintains the state between the
requests.
SOAP relies on SSL and WS-Securiy for secured communication.
SOAP works with the XML data format to handle the complex data.
Similar Reads
Difference between WCF and Web Service
WCF (Windows Communication Foundation): WCF, as the name
suggests, is a unified .NET framework that is used to develop service-…
9 min read
10 min read
Magento vs Drupal
Magento can be understood as an e-commerce platform which helps its
users to create online stores for selling their products and services. It wa…
11 min read
Wix vs Drupal
Wix can be understood as a website builder which helps the users to
make websites or web applications for different platforms like mobiles,…
9 min read
Magento vs Wix
Magento can be understood as an e-commerce platform which helps its
users to create online stores for selling their products and services. It wa…
10 min read
14 min read
Registered Address:
K 061, Tower K, Gulshan Vivante
Apartment, Sector 137, Noida, Gautam
Buddh Nagar, Uttar Pradesh, 201305
Advertise with us
Company Explore
About Us Job-A-Thon
Legal Offline Classroom Program
Privacy Policy DSA in JAVA/C++
Careers Master System Design
In Media Master CP
Contact Us Videos
Corporate Solution
Campus Training Program
Tutorials DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android
Full Stack Course HTML CSS JavaScript TypeScript jQuery AngularJS ReactJS Next.js
Thus, there are some of the most crucial HTTP methods that you must
know as a developer, to develop RESTful APIs for your application.
RESTful APIs are those that follow the REST (Representational State
Transfer) architectural style. With this being said, let’s continue with the
article on the essential RESTful methods to assist you to have with
working on the server side using JavaScript.
Example:
1.1. Backend (Node with Express)
res.json(students);
});
Here, the code defines a get() method that is used to retrieve the
'students' (here is an array of objects) data from the server. It defines a
route that listens to the '/students' endpoint. The second parameter is a
callback function that receives 'req'(request) and 'res' (response)
objects as arguments. It uses the 'res.json()' method to send the data to
the client.
console.log(data)
}
getStudents(BASEURL+"/students");
2. POST
The POST method sends data to create a 'new record' on the server.
The below code shows the implementation of the POST method in
JavaScript.
Example:
2.1. Backend (Node with Express)
// add student
app.post("/students", function (req, res) {
var student = req.body;
students.push(student);
Here, the code defines a post() method that is used to add a new
record i.e. 'student' data to the server. It defines a route that listens to
the '/students' endpoint. The second parameter is a callback function
that receives 'req'(request) and 'res' (response) objects as arguments.
It extracts the data from the request using 'req.body', and appends it to
the existing list using the array push() method. Finally, it sends the
acknowledgment message back to the client in the form of JSON data
using res.json().
2.2. Frontend (JavaScript)
const addStudent = async (URL, student) => {
const response = await fetch(URL, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: student,
});
console.log(data.message);
};
3. PUT
Example:
3.1. Backend (Node with Express)
console.log(data.message);
};
updateStudent(BASEURL + "/students/3", { id: 3, name: "Geek3 Updated" });
4. PATCH
Like the PUT method, PATCH is also used to send data to update an
'existing record' on the server. But the important difference between
PUT and PATCH is that PATCH only applies partial modifications to the
record instead of replacing the whole record. The below code shows the
implementation of the PATCH method in JavaScript.
Example:
4.1. Backend (Node with Express)
}
}
res.json({ message: "Record Updated using patch" });
});
console.log(data);
};
5. DELETE
The DELETE method is used to delete record(s) from the server. The
below code shows the implementation of the DELETE method in
JavaScript.
Example:
5.1. Backend (Node with Express)
console.log(data);
};
deleteStudent(BASEURL + "/students/3");
Code Files
1. Backend Code
// index.js
var express = require("express");
// database
var students = [
{ id: 1, name: "Geek1" },
{ id: 2, name: "Geek2" },
];
// add student
app.post("/students", function (req, res) {
var student = req.body;
students.push(student);
res.json({ message: "Record Added" });
});
// update student
app.put("/students/:id", function (req, res) {
var id = req.params.id;
var student = req.body;
for (var i = 0; i < students.length; i++) {
if (students[i].id == id) {
students[i] = student;
break;
}
}
res.json({ message: "Record Updated" });
});
// delete student
app.delete("/students/:id", function (req, res) {
var id = req.params.id;
for (var i = 0; i < students.length; i++) {
if (students[i].id == id) {
students.splice(i, 1);
break;
}
}
res.json({ message: "Record Deleted" });
});
app.listen(5000, () => {
console.log("Server started on port 5000");
});
2. Frontend Code
console.log(data);
};
console.log(data);
};
console.log(data);
};
console.log(data);
};
// delete student
const deleteStudent = async (URL) => {
const response = await fetch(URL, {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
});
console.log(data);
};
// Function Calls
getStudents(BASEURL + "/students");
updateStudentPatch(BASEURL + "/students/2", {
name: "Geek2 Updated using Patch",
});
deleteStudent(BASEURL + "/students/3");
Conclusion
Now that you know how to implement RESTful HTTP methods in
javascript, start using them now! HTTP methods such as GET, POST,
PUT, PATCH, and DELETE are used in RESTful API development to
specify the type of action being performed on a resource. RESTful
HTTP methods are an essential component of developing web APIs in
the REST architectural style. They are widely used in modern web
development because they provide a standard interface for interacting
with server resources.
REST Architecture
ExpressJS
Similar Reads
How is HTTP used in API Development ?
HTTP (Hypertext Transfer Protocol) plays a vital role in API (Application
Programming Interface) development as it facilitates communication…
Create and use mock servers for API testing or development in…
Postman, a comprehensive API platform, includes a robust API client for
exploring, testing and defining requests. Its notable feature is the ability …
15+ min read
Registered Address:
K 061, Tower K, Gulshan Vivante
Apartment, Sector 137, Noida, Gautam
Buddh Nagar, Uttar Pradesh, 201305
Advertise with us
Company Explore
About Us Job-A-Thon
Legal Offline Classroom Program
Privacy Policy DSA in JAVA/C++
Careers Master System Design
In Media Master CP
Contact Us Videos
Corporate Solution
Campus Training Program
Tutorials DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android
Full Stack Course HTML CSS JavaScript TypeScript jQuery AngularJS ReactJS Next.js
.
Explaining the Interface
The longest middle input field that looks something like a search bar
is where the URL that we want to GET or POST or DELETE, etc. is
fed.
Just to the left of it, is a drop down button which has all the various
HTTP methods as options. If you want to POST to the URL that you
have specified, select POST.
To the right of it is the params button. If you click on it, a new
interface will appear. Params are basically the data that we want to
send to the server with our request. We will use this params
interface to POST to put app a new User.
To the right of this button is the Send button which is used in
sending the request to the server or the app in this case.
You will be returned HTML of the URL that you GET. I have selected
the Preview to have a browser-like look.
As you can see in the snap below that with the response from the
server or the app, various headers are returned too with the main
response.
Explanation of Header :
The first header returned is keep-alive . It basically means that the
server's connection with the user will not kill itself after some time.
Content-length is the length of the html document that is
returned.
Date is the time the request has been made to the server to
return the file.
X-Powered-By sends Express as the app server is Express.
Etag is an identifier for a specific version of the resource. It
helps in saving time and bandwidth in case the user
requests the same page again without any modifications,
then the same file could be sent. You can read more about
Etags here.
get register
0:00
1. Delete Folder:
To delete a folder, right-click on the folder name in the Collections
tab and select "Delete."
Conclusion
Similar Reads
Introduction to Thunder Client For API Development
Thunder Client is a lightweight REST API client designed as a Visual
Studio Code (VS Code) extension. It provides a fast, easy, and user-…
14 min read
Create and use mock servers for API testing or development in…
Postman, a comprehensive API platform, includes a robust API client for
exploring, testing and defining requests. Its notable feature is the ability …
What are the key benefits of using Postman for API development?
Postman is an API(application programming interface) development tool
that helps to build, test and modify APIs. In this tutorial, we will see wha…
Registered Address:
K 061, Tower K, Gulshan Vivante
Apartment, Sector 137, Noida, Gautam
Buddh Nagar, Uttar Pradesh, 201305
Advertise with us
Company Explore
About Us Job-A-Thon
Legal Offline Classroom Program
Privacy Policy DSA in JAVA/C++
Careers Master System Design
In Media Master CP
Contact Us Videos
Corporate Solution
Campus Training Program
Tutorials DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android
Full Stack Course HTML CSS JavaScript TypeScript jQuery AngularJS ReactJS Next.js
Web Services: A Web services are any bit of services that makes it
accessible over the Internet and normalizes its correspondence through
XML encoding. A customer conjures web services by sending a
solicitation (for the most part as an XML message), and the services
send back an XML response. Web services summon communication
over a network, with HTTP as the most widely recognized methods for
the network between the two frameworks. Web services are equivalent
to SOA (Services Oriented Architecture) and fundamentally depend on
measures, for example, XML-RPC and SOAP (Simple Object Access
Protocol). Components: All the standard web services work using the
following components.
SOAP (Simple Object Access Protocol)
UDDI (Universal Description, Discovery and Integration)
WSDL (Web Services Description Language)
All Web services are APIs. APIs are not web services.
Web Services can be hosted on Web API can be hosted only on IIS and
IIS. self.
Comment More info Next Article
Differences between Web
Campus Training Program Services and Web API
Similar Reads
Difference between WCF and Web Service
WCF (Windows Communication Foundation): WCF, as the name
suggests, is a unified .NET framework that is used to develop service-…
9 min read
8 min read
15 min read
10 min read
Registered Address:
K 061, Tower K, Gulshan Vivante
Apartment, Sector 137, Noida, Gautam
Buddh Nagar, Uttar Pradesh, 201305
Advertise with us
Company Explore
About Us Job-A-Thon
Legal Offline Classroom Program
Privacy Policy DSA in JAVA/C++
Careers Master System Design
In Media Master CP
Contact Us Videos
Corporate Solution
Campus Training Program
Tutorials DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android
PHP Tutorial PHP Exercises PHP Array PHP String PHP Calendar PHP Filesystem PHP Math
Table of Content
HTTP GET
HTTP POST
Difference between HTTP GET and HTTP POST
HTTP GET
The HTTP GET method requests data from a server without altering its
state. It appends parameters to the URL, making it suitable for retrieving
non-sensitive data. Commonly used for viewing content, GET is ideal for
requests that don't involve data modification.
Example: In the following HTML code we have created a form with text
fields such as Username and City. we have also included a PHP file
getmethod.php where our data would be sent after we click the submit
button.
<!DOCTYPE html>
<html>
<body>
<form action="getmethod.php" method="GET">
Username:
<input type="text" name="username" /> <br>
City:
<input type="text" name="city" /> <br>
<input type="submit" />
</form>
</body>
</html>
In the following PHP code using the GET method we have displayed the
Username and city.
<!DOCTYPE html>
<html>
<body>
Welcome
<?php echo $_GET["username"]; ?> </br>
Your City is:
<?php echo $_GET["city"]; ?>
</body>
</html>
Output: Data passed in GET method is clearly visible in the address bar,
which can compromise the security.
HTTP POST
The HTTP POST method sends data from the client to the server to
create or update resources, storing data in the request body. It's suitable
for secure data transfer, like images or documents, with security relying
on encryption (HTTPS), authentication, and validation.
Example: In the following HTML code we have created a form with text
field as Username and Area of study. we have also included a PHP file
postmethod.php, where our data would be sent after we click the
submit button.
Related searches
Http Get Vs Post Open Browser with Http Post Http Request
<!DOCTYPE html>
<html>
<body>
<form action="postmethod.php" method="post">
Username:
<input type="text" name="username" /> <br>
Area of Study:
<input type="text" name="area" /> <br>
</html>
In the following PHP code using the POST method we have displayed
the Username and Area of study.
<!DOCTYPE html>
<html>
<body>
Welcome
<?php echo $_POST["username"]; ?> </br>
YOur Area of Study is:
<?php echo $_POST["area"]; ?>
</body>
</html>
Output: Data passed in POST method is not shown in the address bar,
which maintains the security.
GET method request can be saved POST method request can not be
as bookmark in browser. saved as bookmark in browser.
Similar Reads
Difference between http:// and https://
When browsing the web, you might have noticed URLs starting with http.
It is either ‘http://’ or ‘https://’. Such prefixes show how data is transmitte…
10 min read
11 min read
12 min read
Registered Address:
K 061, Tower K, Gulshan Vivante
Apartment, Sector 137, Noida, Gautam
Buddh Nagar, Uttar Pradesh, 201305
Advertise with us
Company Explore
About Us Job-A-Thon
Legal Offline Classroom Program
Privacy Policy DSA in JAVA/C++
Careers Master System Design
In Media Master CP
Contact Us Videos
Corporate Solution
Campus Training Program
Tutorials DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android
Shell Scripting Kali Linux Ubuntu Red Hat CentOS Docker in Linux Kubernetes in Linux Lin
This article will take you through the API authentication approaches,
such as OAuth 2.0, API keys, JWT (JSON Web Tokens), Basic
Authentication, TLS authentication, and OpenID Connect (OIDC). We
will also have a look at the best practices of API security so that you
may select the suitable authentication method.
Authentication Vs Authorization
For example:
1. Client Request:
2. Server Validation:
1. Basic Authentication
4. OAuth 2.0
An extensively used API authorization system for safe access
delegation.
Here the user authenticates and gives permission to an application.
Then the API gives an access token.
Subsequent requests can then use the token by that app.
Best for SSO (Single Sign-On), third-party integrations, mobile apps.
Never store API keys in source code, which is readily found in version
control systems.
Securely store API keys by storing them in environment variables,
secrets management, or vault services.
Rotate API keys regularly to minimize security exposure in the event
that they are leaked or compromised.
Limit API keys to trusted IP addresses, domains, or services to
minimize unauthorized access.
Public APIs: Implement OAuth 2.0 for secure third-party access with
token-based authentication.
Internal APIs: Implement API Key Authentication or JWT (JSON Web
Tokens) for lightweight and highly scalable authentication.
High-security apps: Implement Mutual TLS (mTLS) to provide secure
client-server authentication for encrypted communication.
For more details refer the article: 7 Best Practices for API Security
in 2024
No session storage;
Stores session data on the
Storage uses tokens (JWT, OAuth
server
2.0)
JWT-based API
Session-based login in
Examples authentication in a
banking apps
microservices architecture
SSO allows users to log in only once and access multiple services
without having to re-enter their credentials.
Google SSO, Facebook Login, and Microsoft SSO services encourage
security and convenience for users by reducing the use of multiple
passwords.
Benefits: Avoids password depletion, reduces phishing threats, and
streamlines enterprise access management.
How Single Sign-On (SSO) works
Conclusion
API authentication is the foundation of API security, where only
legitimate users and applications can access secure resources. Having
robust authentication mechanisms such as OAuth 2.0, API Key
Authentication, JWT (JSON Web Tokens), TLS Authentication, and
OpenID Connect (OIDC) prevents unauthorized access, data breaches,
API abuse, and cyber threats.
Similar Reads
How Does Two-Factor Authentication (2FA) Work?
Two-factor authentication (2FA) is a security system that requires two
distinct forms of identification in order to access something. Two-factor…
SAML Authentication
SAML is an XML based framework that stands for Security Assertion
Markup Language. SAML is used to enable SSO (Single-Sign-On). SSO…
8 min read
Registered Address:
K 061, Tower K, Gulshan Vivante
Apartment, Sector 137, Noida, Gautam
Buddh Nagar, Uttar Pradesh, 201305
Advertise with us
Company Explore
About Us Job-A-Thon
Legal Offline Classroom Program
Privacy Policy DSA in JAVA/C++
Careers Master System Design
In Media Master CP
Contact Us Videos
Corporate Solution
Campus Training Program
Tutorials DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android
HTTP Protocol is used everywhere from the server page to each service
communication, deploying service to monitoring service. HTTP codes
give an extension of HTTP protocol to debug network problems using
curl, telnet able to check server availability, service responses
HTTP status code is used for search engine optimization of how your
pages get indexed, as well as how search engines perceive the
performance of your site.
HTTP Status
The initial line of the server’s response indicates the HTTP version and a
three-digit status code. Server reserves some default error messages
(404 not found or 500 internal server error). Each server(Tomcat,
Redhat, Web server) reserves some HTTP status for inbuilt
functionality. It is also possible to manually configure the status code.
HTTP Response Status Codes
Informational responses (100–199)
Successful responses (200–299)
Redirection messages (300–399)
Client error responses (400–499)
Server error responses (500–599)
Informational Responses
Message Description
101 Switching
that it will be switching to another protocol.
Protocols
102 Processing This code tells us that server is processing the request
(WebDAV) but at the current time, no response is available.
Success Response
Message Description
203 Non-
The information given by the user is not the
Authoritative
original owner of the request.
Information
Redirection Messages
Message Description
402 Payment
This code is not yet implemented in HTTP.
Required
408 Request Time-out This response code means the client did not
produce a full request within some
predetermined time (usually
Message Description
413 Request Entity The server will not process the request because
Too Large its entity-body is too large.
414 Request URL Too The server will not process the request because
Long its request URL is too large.
415 Unsupported The server will not process the request because
Media Type its entity-body is in an unsupported format.
416 Request Range The requested byte range is not available and is
Not Satisfiable out of bounds.
Message Description
424 Failed
Dependency It occurs due to the failure of a recent request.
(WebDAV)
429 Too Many This error comes when multiple requests are
Requests made in a certain amount of time.
Message Description
500 Internal Server This code indicates that a part of the server
Error encountered a configuration error.
505 HTTP Version Not Internet Engineering Task Force (IETF) Publish
Supported information usage of standard code.
508 Loop Detected This error comes when there is an infinite loop.
511 Network
This indicates that it requires verifying network
Authentication
access.
Required
13 min read
14 min read
14 min read
7 min read
What is HTTP ?
HTTP (Hypertext Transfer Protocol) is a fundamental protocol of the
Internet, enabling the transfer of data between a client and a server. It is…
11 min read
12 min read
Registered Address:
K 061, Tower K, Gulshan Vivante
Apartment, Sector 137, Noida, Gautam
Buddh Nagar, Uttar Pradesh, 201305
Advertise with us
Company Explore
About Us Job-A-Thon
Legal Offline Classroom Program
Privacy Policy DSA in JAVA/C++
Careers Master System Design
In Media Master CP
Contact Us Videos
Corporate Solution
Campus Training Program
Tutorials DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android
Full Stack Course HTML CSS JavaScript TypeScript jQuery AngularJS ReactJS Next.js
Table of Content
How Postman Works?
HTTP Request
HTTP Response
In API testing we test the collection of APIs, and we check that whether
your application fulfills the expectations of functionality, reliability,
performance, and security. Also, we check that whether it returns the
correct response or not.
The http request are created ny defining http method, url, headers,
body.
This request is sent by the postman to the server or API endpoint.
Then server's response is received and displayed by Postman
including the response status, header and body
Postman sends the request to the webserver and then the server sends
the response back to it. A user has to set all the headers and cookies
API expects to check the response.
Related searches
Postman Crash Course for Beginners Learn Api Testing Free Download
Postman Installation
You can install the postman from the link Postman. This tool provides a
collection of API calls, and you need to follow these API calls for testing
APIs of the application. You will find a dropdown list with multiple
methods.
You can select one of the methods from the given dropdown list. You
will also have to include more information depending on the API call.
This information are set as Authorization, Header, or body information.
You just need to select one of the methods and send the request and
get the response back.
In the top right corner, you will get the option to set the environment
variable. You can follow the steps given below to set the environment
variable.
1. HTTP Request
You make HTTP calls sending the HTTP Request. In HTTP request
method includes Request Method, Request URL, Request Headers,
Request Body, Pre-request Script, and Tests.
Request Methods
Request URL: You will find a long-width bar in Postman where you will
have to enter the URL to make the HTTP request.
Request Headers: In the request header, you enter the key value of the
application. The two main key values are given below.
2. HTTP Response
Once you send the request to Postman, you get the response back from
the API that contains Body, Cookies, Headers, Tests, Status Code, and
API Response time. Body and Header get organized in different tabs.
Status code gets displayed in another tab with the time taken to
complete the API call. Some important status codes are given below to
verify the response.
From the above explanation, you might have understood many things
about Postman. How it works, how it is used for testing, request,
response, and all the status code as well. Postman is the most popular
tool among developers for API testing. There are many other tools as
well, you can check out them as well, but the most popular one is
POSTMAN and the reason behind its popularity is a lot of features
included in it.
Comment More info Next Article
Postman - Working, HTTP
Campus Training Program Request & Responses
Similar Reads
How HTTP POST requests work in Node ?
The HTTP POST method is used to send data from the client to the server.
Unlike GET, which appends data in the URL, POST sends data in the…
14 min read
8 min read
10 min read
Registered Address:
K 061, Tower K, Gulshan Vivante
Apartment, Sector 137, Noida, Gautam
Buddh Nagar, Uttar Pradesh, 201305
Advertise with us
Company Explore
About Us Job-A-Thon
Legal Offline Classroom Program
Privacy Policy DSA in JAVA/C++
Careers Master System Design
In Media Master CP
Contact Us Videos
Corporate Solution
Campus Training Program
Tutorials DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android