Accessing API using Swagger UI
To access the interactive API documentation and test API calls for BMC Helix Edge.
Before you begin
- URL of the BMC Helix Edge core node.
- Connected to the same network with appropriate firewall rules configured, or use a VPN if necessary.
- Depending on the platform, you might authenticate before executing swagger requests. Consult your administrator to determine the required authentication method.
To access BMC Helix APIs through Swagger UI
- Launch your preferred web browser.
- In the web browser address bar, enter the URL of your core node followed by /swagger/index.html. For instance, in https://clm-aus-wxrld7:8000/swagger/index.html. clm-aus-wxrld7:8000 is the URL of the core node.
Replace with your core node URL. - Press Enter.
You see a page titled Hedge Edge API as follows:
The page lists the available API endpoint categories for API calls. These APIs are grouped by functionality, such as Devices, Alerts, or Users.
- Click the name of an API request to expand it. For example, click GET /api.v3/deviceinfo/device/name/{deviceName} Get Complete Device Info to expand it.
The system reveals details about that specific API call.
Each request has a description explaining its purpose. In the Parameters section, observe for the following:
Parameter name
Description
Path Parameters
Parts of the URL that specify a particular resource, for example /devices/{deviceId} where {deviceId} is a path parameter.
Query Parameters
Optional parameters are added to the URL after a ?, for example /devices?status=active.
Request Body
For POST, PUT, and sometimes PATCH requests, this field describes the data you must send in the body of the request in JSON format. Swagger UI often shows you the expected data structure such as the schema.
Headers
Custom request headers.
- (Optional) In case the Authorize button is present perform the following steps.
- On the top left corner of the Swagger UI, click Authorize.
- Select the appropriate authentication method that the BMC Helix Edge instance uses.
- Enter the required credentials.
- Click Authorize
The system authorizes you to make API calls. If there are multiple security schemes, you must approve each one. - Click Close.
- Select an API request to test, for example, a GET request to retrieve data, and perform the following steps:
- In the expanded endpoint section, click Try it out.
- If the endpoint requires parameters such as path, query, or body, enter the appropriate values in the provided fields.
Swagger UI provides helpful input validation and suggestions based on the API definition. Click Execute.
The system returns with the request. The following table describes the parameters:Parameter name
Description
Curl Command
Swagger UI shows you the equivalent curl command that was executed. This is useful for scripting or debugging.
Request URL
The full URL used for the request.
Response Code
The server returns the HTTP status code. For example 200, 404, so on.
Response Body
The server returns the data in JSON format. The body is the data you requested.
Response Headers
The server returns the HTTP headers.
- Click the lock icon to log out.