Skip to content

automatic-controls/rest-api-addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

REST API Add-On


WebCTRL is a trademark of Automated Logic Corporation. Any other trademarks mentioned herein are the property of their respective owners.


Overview

The REST API Add-On provides secure access to WebCTRL server data and functionality via HTTP endpoints. It is designed for integration with custom clients, automation scripts, and web applications.


๐Ÿ“– Full interactive documentation is available from the add-on's main page once installed on your WebCTRL server. This README is meant only to give a brief overview of the capabilities.


๐Ÿš€ Installation

  1. If signed add-ons are required, copy the authenticating certificate ACES.cer to the ./programdata/addons directory of your WebCTRL installation folder.
  2. Install RestAPI.addon using the WebCTRL interface.

๐Ÿ“ก Endpoints

The add-on exposes the following endpoints:

  • GetSchema โ€” Retrieves the JSON schema used to validate input for an API endpoint.
  • ResolveGQL โ€” Resolves a GQL path or DBID and retrieves details about the node.
  • SearchGQL โ€” Traverses the node tree starting from one or more root nodes, applying filters at each step to find matching nodes.
  • ExecGQL โ€” Retrieves and/or sets attribute values for specified nodes.
  • ExecCommand โ€” Executes manual commands on the server.
  • CreateOperator โ€” Creates or updates an operator.
  • DeleteOperator โ€” Deletes an operator from the system.

๐Ÿ› ๏ธ SDKs

  • JavaScript SDK: For use in HTML content controls within graphics and other web pages. Provides convenient methods for sending API requests and handling authentication automatically.
  • PowerShell SDK: For scripted automation and CLI use cases. Compatible with PowerShell 5.1 and later.

๐Ÿ“ฆ Third-Party Libraries

This add-on uses the following third-party libraries:

  • fastjson2 v2.0.58 โ€” High-performance JSON parser and serializer for Java.
  • fontawesome v6.7.2 โ€” Icon toolkit for scalable vector icons.
  • highlight.js v11.11.1 โ€” Syntax highlighting for code blocks in documentation.