API: Application Programming Interface
is a set of programming instructions for accessing a web-based software application.
Or
a set of commands used by an individual program to communicate with one another directly and use each other's functions to get information.
REST: Representational State Transfer
It is an architectural style and an approach for communication used in the development of Web Services. REST has become a logical choice for building APIs. It enables users to connect and interact with cloud services efficiently.
There are mainly 4 methods involve in API Testing like GET, POST, Delete, and PUT.
• GET- The GET method is used to extract information from the given server using a given URI. While using GET request, it should only extract data and should have no other effect on the data.
• POST- A POST request is used to create a new entity. It can also be used to send data to the server, for example, customer information, file upload, etc. using HTML forms.
• PUT- Create a new entity or update an existing one.
• PATCH - update existing reco
• DELETE- Removes all current representations of the target resource given by a URI.
Ещё видео!