d.vinci ATS Test Provider REST API documentation version 1.3
https://{customer}.dvinci.de/restApi/
General usage
The d.vinci ATS Test Provider REST API uses JSON as content type for requests and responses with charset UTF-8.
CAUTION: The Test Provider API endpoint has to be implemented by the test provider itself! This documentation only provides information expected by the d.vinci system from the API endpoint.
Authentication by "Dvinci_Header"
For authentication it is required to pass custom HTTP-Headers for every request.
Dvinci-API-User: myApiUser
Dvinci-API-Token: bjOa8wvQyZWtCYYFB3xlPeC79S7xjsCgb2ZZZ92n
An API user can be created by any user who can login to the intern web-ui of d.vinci ATS https://{customer}.dvinci.de/intern and has the permission to create API users.
Curl-Example
curl -i -H "Accept: application/json" -H "Dvinci-API-User: myApiUser" -H "Dvinci-API-Token: bjOa8wvQyZWtCYYFB3xlPeC79S7xjsCgb2ZZZ92n" https://{customer}.dvinci.de/restApi/testResults/{identifier} { status: "PENDING" }
HTTP Response Codes
- 200: OK: Everything was fine
- 401: Unauthorized: Not existing User or not an api user or wrong token
- 403: Forbidden: Valid api user, without permission to access this api method or requested entity or entity/id not exists
- 404: Requested resource not available
- 405: Method not allowed
- 422: Unable to process request: A JSON-Object with field "errorMsg" is returned
Securing "External Links" with JWT
Some endpoints (e.g. test results) allow to add links to external systems. These links can be secured by JWT. For additional information, please go to https://jwt.io/.
The URLs that should be enhanced by JWT can be specified by a d.vinci ATS administrator. The generated token will be added as a query parameter named "jwt".
URL-Example
https://external-link-to-your-system.com?your=param&jwt=eyJhbGciOiJIUzI1NiJ9.eyJkdmluY2lVc2VyIjoicmVzdC1hcGktdG8tZHZpbmNpLXVzZXIiLCJkdmluY2lVc2VySWQiOjEzMzcsImF1ZCI6Imh0dHA6Ly93d3cuZHZpbmNpLmRlIiwiaXNzIjoibG9jYWwiLCJpYXQiOjE0ODA1MDE2OTU5ODl9.NEEje-nzcpEJJPRv_kvRrblcZ1y6GN-tWZ6tJDv1QwY
Additionally it is possible to position the JWT with a given external link if placeholder (jwt) is used, see Test results.
Workflow
Changes
From version 1.2 to 1.3
- All APIs with externalLinks were modified:
- It is possible to position the JWT with a given external link if placeholder (jwt) is used, see Test results.
From version 1.1 to 1.2
- Introduced new test-result-status "TEST_COMPLETED"
From version 1.0 to 1.1
- Added functionality to add external links to test results
Initial release 1.0
- Test result API endpoint
Test Provider API endpoint
The d.vinci system requires a test provider API endpoint (testProviderApiEndpoint). This API endpoint information must be configured by a d.vinci user and may contain optional HTTP header parameters, e.g. for authentication. A POST request will be sent to this endpoint from the d.vinci system to request a test from a test provider.