POSTMAN is a rest client. It is used to hit REST APIs. REST is “Representational State Transfer” Architecture. REST APIs are based on some HTTP methods like-
Postman is an API client that makes it easy for developers to create, share, test and document APIs. This is done by allowing users to create and save simple and complex HTTP/s requests, as well as read their responses. The result – more efficient and less tedious work.
Postman is also used for automation. Test scripts can also be written using it. It is also used for creating bulk data on the server. Postman provides a collection runner for creating the bulk data.
How to use postman for API testing ?
url: https:// (Protocol) + localhost:8000 (applink+port) + api/v1/user-registration(Endpoint)
Content-Type: application/json=> Request payload is in JSON
In postman select method: POST (A method is used to create data on a server. It is the HTTP method). You can send other requests like GET, PUT, DELETE etc.
Enter URL in Postman. Meanwhile, the URL will have a protocol, port, endpoint & server IP. Server IP represents the application server.
The response will be like :
Some Response Code is-
It is an easy-to-use tool. The end-user can learn it easily and manipulate queries as well. If we compare it with soap UI then JSON is very simple and understandable. All methods are HTTP-based. The User Interface is very easy to use. Response codes are readable and simple. We can also check responses in HTML and XML as well.
Leave A Reply