RESTful Web Services API
Overview
Universal Controller supports a RESTful-based web services API that allows you to perform multiple operations, which are listed alphabetically on the following pages.
Formatting specifications for each web service, including details about field requirements, are provided.
Swagger UI and OpenAPI
Universal Controller offers an OpenAPI specification along with a Swagger UI page that provides an interactive interface for easily visualizing and interacting with Universal Controller RESTful API endpoints.
The Swagger UI page can be accessed from the Universal Controller user interface by clicking on the icon in the toolbar.
The OpenAPI document can be accessed in either JSON or YAML formats by going to <Controller URL>/resources/openapi.json or <Controller URL>/resources/openapi.yaml.
Methods of API Operations
Every API operation is performed using one of the following methods.
Method | Description |
|---|---|
GET | Retrieves records from the Controller database. |
POST | Creates, or performs an action on, a record in the Controller database. |
PUT | Modifies a record in the Controller database. Note PUT, by itself, actually replaces an existing record with whatever information you include in the PUT operation. If you include only partial record information in a PUT, the record in the database will then contain only that information. In order to modify information in a record and retain all of its unmodified information, you must first GET the record from the database, modify (add/delete/change) information in the record, and then PUT the record back in the database. |
DELETE | Deletes a record in the Controller database. |
Authentication
Universal Controller requires Web Service requests to be authenticated using one of Basic Authentication or Personal Access Token Authentication.
For Basic Authentication, use the following Authorization header, where the username:password is base64 encoded.
Authorization: Basic username:password
For Personal Access Token Authentication, use the following Authorization header.