API Domain
https://ioe-api.nextdrive.io/device-management
Gateway Registration
① Gateway Registration
|
Summary |
① Gateway Registration
|
|
|---|---|---|
|
Path |
POST |
|
|
Description |
Through this API, you can register the gateway. |
|
|
Permission |
|
|
|
Request Header |
Authorization |
|
|
Request body |
Example Value |
JSON
|
|
Schema |
JSON
|
|
|
Note |
At least one of |
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
Successful request |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Invalid Parameter |
401
|
Response |
Status Code |
401 |
|---|---|---|
|
Description |
Unauthorized |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
403
|
Response |
Status Code |
403 |
|---|---|---|
|
Description |
Forbidden |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
404
|
Response |
Status Code |
404 |
|---|---|---|
|
Description |
Not found |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
The device is not found. |
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
|
|
|
Schema |
Internal server error such as database error, redis error, …etc. |
Device Management
① Get Device List
|
Summary |
① Get Device List
|
|
|---|---|---|
|
Path |
GET |
|
|
Description |
Through this API, you can get the topology and identifier of the device list. |
|
|
Permission |
|
|
|
Request Header |
Authorization |
|
|
Request Params |
Example Value |
JSON
|
|
Schema |
JSON
|
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
Successful request |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
|
|
Note |
“nodeDevices” are listed in reversed order by their asscociation time to the gateway. |
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Invalid dsn format |
401
|
Response |
Status Code |
401 |
|---|---|---|
|
Description |
Unauthorized |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Unauthorized |
403
|
Response |
Status Code |
403 |
|---|---|---|
|
Description |
Forbidden |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
No sufficient permissions |
404
|
Response |
Status Code |
404 |
|---|---|---|
|
Description |
Not found |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
The device is not found. |
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
|
|
|
Schema |
Internal server error such as database error, redis error, …etc. |
② Get Device Detail
|
Summary |
② Get Device Detail
|
|
|---|---|---|
|
Path |
GET |
|
|
Description |
Through this API, you can get the details of the basic information of the device. |
|
|
Permission |
|
|
|
Request Header |
Authorization |
|
|
Request Params |
Example Value |
JSON
|
|
Schema |
JSON
|
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
Successful request |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Invalid dsn format |
401
|
Response |
Status Code |
401 |
|---|---|---|
|
Description |
Unauthorized |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Unauthorized |
403
|
Response |
Status Code |
403 |
|---|---|---|
|
Description |
Forbidden |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
No sufficient permissions |
404
|
Response |
Status Code |
404 |
|---|---|---|
|
Description |
Not found |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
The device is not found. |
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
|
|
|
Schema |
Internal server error such as database error, redis error, …etc. |
③ Get Device Status
|
Summary |
③ Get Device Status
|
|
|---|---|---|
|
Domain |
||
|
Path |
GET |
|
|
Description |
Through this API, you can get the device's connection status information. |
|
|
Permission |
|
|
|
Request Header |
Authorization |
|
|
Request Params |
Example Value |
JSON
|
|
Schema |
JSON
|
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
Successful request |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
only support 10 devices in the one request |
401
|
Response |
Status Code |
401 |
|---|---|---|
|
Description |
Unauthorized |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
|
|
|
Schema |
Internal server error such as database error, redis error, …etc. |
④ Upload Gateway Log
|
Summary |
④ Upload Gateway Log
|
|
|---|---|---|
|
Path |
POST |
|
|
Description |
Through this API, you can send a command to a specific gateway to upload the log. |
|
|
Permission |
|
|
|
Request Header |
Authorization |
|
|
Parameter |
Example Value |
JSON
|
|
Schema |
JSON
|
|
|
Note |
|
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
Successful request |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
401
|
Response |
Status Code |
401 |
|---|---|---|
|
Description |
permission denied |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|
500
|
Response |
Status Code |
500 |
|---|---|---|
|
Description |
System error |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
|