REST API Testing
What is REST API ?
Habtamu Petros
Last Update il y a 4 ans
API provides a common interface to interact & communicate between two systems. REST API uses the architectural style of an API and has 6 main constraints:
- Client Server
- Stateless
- Cache
- Uniform Interface
- Layered System
- Code On Demand
If an API is developed by using these constraints, then this APIs is REST API

What is a Web Service?
It is a standards-based, language-independent software entity that receives specially prepared requests from other software entities on remote machines and responds with application-specific responses via a vendor, and transport-neutral communication protocols.
API and Web services serve as a means of communication. The difference is that a Web service facilitates the interactions between two machines over a network. An API acts as an interface between two different systems so that they can communicate with each other. An API is a method by which third-party vendors can write programs that interface easily with other programs.
Types of API Testing
Unit Testing
A "unit test" is testing a single endpoint, with a single request, looking for a single response or set of responses. Many times, this type of testing can be done manually via the command line and something like a URL command or with lightweight tools like SoapUI.

Integration Testing
Integration testing is the most often used form of API testing, as APIs are at the center of most integrations between internal or third-party services.

End-to-End Testing
End-to-End testing can help us validate the flow of data and information between a few different API connections.
