Getting Started

Intro

WATS Rest API is available from the 2015.2 (WATS server version) release.
The WATS Rest API can be used to retrieve collected information from the WATS database using standard web Api methods. This first version of our public web Api, you can query for WATS Reports (UUT and UUR) using an Web Api controller, and request the entire report in one of two xml formats, WSXF and WRML format. The api results is returned in Json format unless explicitly requested as xml.

Tools

The PostMan app in Chrome browser can be used for simplified test and debugging against the WATS REST Api

Authentication

All Api calls must be autheticated using basic authentication. A special GetToken api call can be used to request a special machine account token that can be used in other api calls.

Refer to https://virinco.zendesk.com/entries/80833265-Authentication for details on authetication.

UUT History

Query action

UUT History can be retrieved through the Report controller. This controller is located on the url https://your-server-address/wats/api/Report

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_UTC with oldest report first.

WSXF 

To retrieve a specific report use the WSXF action with the report's unique identifier (Guid):

https://your-server-address/wats/api/report/wsxf?id=3CCB709E-5155-4D62-9402-48DF8F576D7A

Refer to https://virinco.zendesk.com/entries/80833195-Get-UUT-History/edit for details on UUT History

Refer to https://virinco.zendesk.com/entries/81403159-Wats-Standard-Xml-Format-WSXF for details on the WSXF format.

References

http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/supporting-odata-query-options

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.