Response and Accessibility Information
Jan 1 2022 at 12:00 AM
Definitions
- IoT
- Internet of Things
- DAPI
- Dynamic Application Programming Interface
- Tenant
- Tenant is an isolated environment configuration done per client. Only the client has access to the Tenant environment.
- Portal
- Portal gives users the ability to manage and configure edge devices and gateways.
- Commander™
- The Commander™ is a web application that enables users to visually represent telemetry, manipulate edge telemetry and interact with edge devices or gateways.
- URL
- Uniform Resource Locator
- API
- Application Programming Interface
- HTTP
- Hyper Text Transfer Protocol
- HTTPS
- Hyper Text Transfer Protocol Secure
- SignalR
- SignalR is a software library for Microsoft ASP.NET that allows server code to send asynchronous notifications to client-side web applications.
HTTP Status Codes
Http Status codes are issued by a server in response to a client’s request made to the server. Below is a list of commonly used status codes:
Status code | Comment |
---|---|
200 | OK - Standard response for successful HTTP requests |
201 | The request has been fulfilled, resulting in the creation of a new resource |
202 | The request has been accepted for processing, but the processing has not been completed |
400 | The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax, size too large, invalid request |
401 | The client authentication is required and has failed or has not yet been provided. |
404 | The requested resource could not be found. |
408 | The server timed out waiting for the request. |
500 | The server has encountered a situation it doesn’t know how to handle. |
501 | The server either does not recognize the request method, or it lacks the ability to fulfil the request. |
502 | The server was acting as a gateway or proxy and received an invalid response from the upstream server. |
504 | The server was acting as a gateway or proxy and did not receive a timely response from the upstream server. |
API Response Types
Success Response
{
"result": {
},
"messageType": "OK",
"state": null,
"sourceMessageID": "d760b76cb4f246e1a0c8a0a3ed7b2ad2"
}
Error Response
{
"result": null,
"messageType": "error",
"errorCode": 1,
"errorMessage": "",
"exceptionType": "",
"state": null,
"sourceMessageID": "063828e55f2c43189541787b6da2d856"
}
API Access Area
- Core Only
- Api can only be accessed through the Core url.
- Tenant Root Only
- Api can only be accessed by the tenant owner through the Tenant url.
- Tenant Account Only
- Api can only be accessed on account level through the Tenant url.
- Tenant Account and Root Only
- Api can be accessed by both account level users and tenant owners, but only through the Tenant url.
- Core and Tenant
- Api can be accessed by both Core and Tenant urls. This includes both account level users and tenant owners.
API Environment Classification
Environment | Platforms | URL |
---|---|---|
DEV | Tenant | https://t00.commander.dev/{accountId}/_apis/dapi/ |
Portal | https://portal.dev.iotnxt.io/ | |
Commander | https://commander.dev.iotnxt.io | |
QA | Tenant | https://t00-qa.commander.dev/{accountId}/_apis/dapi/ |
Portal | https://portal.qa.iotnxt.io/ | |
Commander | https://commander.QA.iotnxt.io | |
Prod | Tenant | https://{platform}/{accountId}/_apis/dapi/ |
Portal | https://portal.iotnxt.io/ | |
Commander | https://{platform} |