API
Documentation
  • Welcome!
  • REST API
    • Overview
    • Authentication
    • Swagger docs
    • Query an endpoint
    • Filter query results
    • Handling timestamps
    • Backward compatibility
    • Exporting Data using ODATA
    • Power BI Incremental refresh
    • Data Lake Transfer Gateway
    • EXAMPLES
      • Upload production schedule
      • Find all Running Orders
      • Interact with the Order Lifecycle
      • Consume and Submit an Activity
      • Raise an Event in TilliT
  • MQTT API
    • Overview
    • Connect to the TilliT Broker
    • Subscribe to a TilliT Topic
    • Setting a MQTT Integration
    • Publish Timeseries
    • Publish Order Progress
  • Activity API
    • Overview
    • JavaScript Basics
    • Using $scope and OnLoad Scripts
    • JavaScript Object Schema
  • Release Notes
    • 2024
      • April
Powered by GitBook
On this page
  • Overview
  • Accessing the Swagger Documentation
  • Exploring the Swagger Doc
  1. REST API

Swagger docs

PreviousAuthenticationNextQuery an endpoint

Last updated 9 months ago

Overview

Now you have successfully authenticated to the TilliT API services. Its time to start exploring what endpoints are available for you to manipulate. We make our API Documentation available via a Swagger Document. Follow this article for how to connect and utilise the documentation

Accessing the Swagger Documentation

The swagger docs are available at https://[tenant].tillit.cloud/assets/swagger/index.html, replacing [tenant] with your TilliT tenant. For example, https://demo123.tillit.cloud/assets/swagger/index.html. This requires that you are already logged in with any TilliT Account. You should see the following:

This swagger file has two definitions, one for our Scheduler API and TilliT API. Switch via the top right drop down to the api-production-DigitalOperationsService to get the relevant endpoints you need.

Exploring the Swagger Doc

TilliT uses a REST API. What this means is that each endpoint will have a related object or entity that will be manipulated by one of GET, POST, PUT or DELETE. The Swagger UI shows each of entity and the relevant method that can be executed for each of its endpoints. Clicking on one of the endpoints, in this case GET:/core/assets/ will show the response you can expect after the query is executed.

You can execute the query to see exactly the data you're able to retrieve by clicking on the blue execute button. The following output will be displayed.

With such a large file, it can be hard to navigate. It is recommended to use ctrl+f to search for the endpoint you are after. For example, search 'starter' to find the activity-starter endpoint, or 'event' to find event-instances endpoints.