Using Postman to test the WebAPI
Postman is a tool that allows you to test REST services (Web APIs) through an intuitive interface. In addition to sending HTTP requests, this tool analyzes the responses, presenting them in a way that is simple and easy to understand. 1 - Download and install the Postman application available from https://www.getpostman.com; The Token request must be the first request made when the Web API is used. This gives customers an authorization that will enable them to carry out the necessary operations. In the case of the PRIMAVERA ERP, there are two situations where this order can use different parameters, depending on the endpoint consumed. For example, to obtain a list of company codes, you do not need to specify the company, so this parameter can be skipped and the system will return the requested authorization. However, if this token is used to access another company-dependent resource, the system will return an unauthorized error. These variables are a very important resource when working with multiple Collections in postman. To avoid always writing the same parameters in all requests, you can create and assign a value to environment variables. In this sense, in the ERP Collection, there is an 'ERPERP10-Env-Variables' environment that stores all used variables. To use this Collection, you need to modify these variables according to your reality.Getting started with Postman
2 - Press the Run in Postman button;
3 - Select your desktop;
4 - Change the value of environment variables according to your installation;
5 - Select the token element from the tree and then Token Request;
6 - Press Send. The response will be displayed in the Body tab. In this case, the necessary authorization is returned so that you can make the following requests from the Web API.Token request
Environment variables
login para deixar a sua opinião.