Intro
The WATS REST API is part of the WATS installation and can be used to retrieve collected information from and add data to WATS using standard web API methods. The API has endpoints available to:
- Query for WATS Reports (Test reports and Repair reports),
- Request the entire report in WSXF or WJSF format,
- Upload reports in WSXF or WJSF format,
- Query for various yield reports for analysis, for example worst yield, high volume, and volume yield,
- Query for, add, and update metadata and production data, for example products (part numbers), revisions, bill of materials, and assets.
The API results are returned in JSON format unless explicitly requested as XML.
Head over to the in-app documentation for more information about the available endpoints.
Tools
The PostMan app can be used for simplified test and debugging against the WATS API. You may also navigate to the API documentation and test the available endpoints directly in your browser.
Authentication
All API requests must be authenticated using basic authentication. A special GetToken endpoint can be used to request a special machine account token that can be used in other api calls. You may also manage tokens from within the WATS Control Panel.
Refer to https://virinco.zendesk.com/entries/80833265-Authentication for details about authentication.
UUT History
UUT History can be retrieved through the Report controller. This controller is located on the url:
https://customer.wats.com/api/Report/Query/Header
The Query action supports OData query options for filtering and paging. Returns a page of most recent reports matching the specified filter. Default order is Start with newest report first.
WSXF
To retrieve a specific report, use the WSXF action with the report's unique identifier (Guid):
https://customer.wats.com/api/Report/wsxf/6b0bedb5-e059-4510-9807-dbe50ce0d4af
Refer to the Get-UUT-History and the Wats-Standard-Xml-Format-WSXF articles for more details.
References
http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/supporting-odata-query-options
Comments
0 comments
Please sign in to leave a comment.