API Description Document

Download the machine-readable API description document from the TS7785 to use as a reference for building programs and parsing RESTful API responses.

Description documents are language-agnostic, so you can use them regardless of your programming language.

Table 1. RESTful API description document
Document title Link to downloadable file
RESTful API description document YAML File

Query for the Description Document

The TS7785 RESTful API description document is retrieved in YAML format by using the GET command.

The following example shows how to use CURL to retrieve this document.

curl -k --request GET 'https://ip_address or hostname/api/docs'
Note: The provided curl command syntax may not work under Windows environment, it depends on the application to run the curl command. You may need to adjust the command syntax if it does not work.
The TS7785 RESTful API description document is listed as shown below.
Note: The response is formatted and truncated for clarity.

openapi: 3.0.0
info:
  title: TS7785 RESTful API
  description: "TS7785 REST API OpenAPI definition. To be used by documentation generation\
    \ tools to display the API, code generation tools to generate servers and clients\
    \ in various programming languages, testing tools and more."
  version: 1.0.0
.
.
.
.
Note: The response from the REST API does not appear in the same order as in the documentation.