Mjsonrpc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
|+List of MIDAS JSON-RPC methods | |+List of MIDAS JSON-RPC methods | ||
|- | |- | ||
!method name | ! method name | ||
! | !colspan=3| description | ||
|- | |- | ||
| | || | ||
|- | |- | ||
| || | | echo | ||
|colspan="3"| echo the request parameters back to the caller | |||
|- | |- | ||
| || | ! || parameters || type || description | ||
|- | |- | ||
| | | || - || object || any object | ||
|- | |- | ||
| || | ! || returns || type || description | ||
|- | |- | ||
| || returns || null | | || - || object || parameters object | ||
|- | |||
|| | |||
|- | |||
| null | |||
|colspan=3| always return a null | |||
|- | |||
! || parameters || type || description | |||
|- | |||
| || - || anything || any object (object) | |||
|- | |||
! || returns || type || description | |||
|- | |||
| || null || null || always returns a null value | |||
|- | |||
|| | |||
|- | |||
| db_copy | |||
|colspan="3"| get a copy of ODB in JSON format | |||
|- | |||
! || parameters || type || description | |||
|- | |||
| || names || array of strings || odb paths to copy | |||
|- | |||
! || returns || type || description | |||
|- | |||
| || data || array of objects || odb data for each entry in names[] | |||
|- | |||
| || last_written || array of numbers || odb last_written for each entry in names[] | |||
|- | |||
| || status || array of numbers || odb get status for each entry in names[] | |||
|} | |} |
Revision as of 14:55, 28 October 2015
test
method name | description | ||
---|---|---|---|
echo | echo the request parameters back to the caller | ||
parameters | type | description | |
- | object | any object | |
returns | type | description | |
- | object | parameters object | |
null | always return a null | ||
parameters | type | description | |
- | anything | any object (object) | |
returns | type | description | |
null | null | always returns a null value | |
db_copy | get a copy of ODB in JSON format | ||
parameters | type | description | |
names | array of strings | odb paths to copy | |
returns | type | description | |
data | array of objects | odb data for each entry in names[] | |
last_written | array of numbers | odb last_written for each entry in names[] | |
status | array of numbers | odb get status for each entry in names[] |