Version 2 of the Web API
Version 2 of the Web API in ERP version 10 presents some significant changes compared to the previous version: All version 2 endpoints will now be supplemented with v2 before the module is identified. Thus, the basic URL structure of the endpoints becomes: In version 2, the response to all requests has the same structure: This structure is intended to immediately remove the complexity from http clients, which now have a single structure for returning requests. Detailing the properties of the return object: In version 2, we use 4 types of HTTP Request The BlockMultipleRequestsPerContext setting (true by default) is available in the web.config file to block simultaneous requests to the same ERP engine. The ERP engines are instantiated according to the token requested, and the correct separation of resources is guaranteed when properly instrumented with the session key. When the session key is not used, errors can occur as shared resources are used simultaneously. This configuration prevents such errors. For more information, please see the Architecture section of the Web API documentation. Version 2 also provides the Swagger tool as a mechanism for documenting and invoking the Web API. Swagger's default address will be: http://localhost:2018/WebApi/swagger/ui/index This will also become the entry page for the Web API when accessing http://localhost:2018/WebApi. Find out more about using Swagger in the support article.Endpoints
http://localhost:2018/WebApi/v2/{modulo}/{entidade}/{servico}/
Request Return
{
"Version": "string",
"StatusCode": 0,
"ErrorMessage": "string",
"Results": {}
}
HTTP Request of each Request
Blocking simultaneous requests for the same context
Web API Documentation with Swagger
login para deixar a sua opinião.