What is a postman?
Postman is a great tool when trying to dissect RESTful API’s made by others or test ones you have made yourself. It offers a sleek user interface with which to make HTML request, without the hassle of writing a bunch of code just to test an API’s functionality.
In using this postman app we need to understand about RESTful API. RESTful API / REST API is an implementation of API (Application Programming Interface). REST (Representational State Transfer) is an architecture of communication method that uses HTTP protocol for data exchange and this method is often applied in application development.
Before starting, at least we should understand about RESTful API. Because in testing, we use the components of the RESTful API. for more detail you can read here.
Alright, first open the postman app. Please log in first and you will be directed to dashboard postman as shown below :
Here I do testing API to register an account with the following criteria :
Endpoint : http://your-url/api/v1/user/register
Method : POST
Request : must be application/json
Signature : SHA256 (apiversion + endpoint + email + fullname + request key)
Request Key : UJSepqnknxaz8iz1sWIVIev4Uz8LaZuStUqxfi6nghA=
Success Response, return 200 http code, with payload :
Error Response, return 422 http code, with payload:
So a glimpse of the testing API’s by using Postman. If you are unclear please ask questions in the comments field, and if you have any ideas for other discussions I would be very proud to write here.