This is the osiota REST api documentation. You can find out more about osiota at https://osiota.net/.
License: MIT
Perform actions on nodes of osiota
Get current value of the node
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
node | path | Name of the node | Yes | string |
Code | Description | Schema |
---|---|---|
200 | successful operation Example (One): { |
Node |
400 | Bad Request | |
404 | Node not found |
Call a RPC function of a node
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
node | path | Name of the node | Yes | string |
action | body | Action template to call | No | string |
method | body | RPC method to call | No | string |
arguments | body | Arguments to call | No | [ any ] |
Code | Description | Schema |
---|---|---|
200 | successful operation | [ any ] |
400 | Bad Request | |
404 | Node not found | |
422 | Unprocessable Entity | Error |
500 | Internal application error | Error |
Name | Type | Description | Required |
---|---|---|---|
value | any | Value of a Node Example: "Hello World" |
No |
time | number | Unix timestamp of last alteration Example: 1588419904.666 |
No |
Name | Type | Description | Required |
---|---|---|---|
error | string | Error string Example: "Method not found" |
No |
data | any | Addional information | No |