Mjsonrpc: Difference between revisions

From MidasWiki
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  
!parameters
!colspan=3| description
!description
|-
|-
| echo | colspan=2 | echo the request parameters back to the caller
||
|-
|-
| || - || any object (object)
| echo
|colspan="3"| echo the request parameters back to the caller
|-
|-
| || returns || parameters object (object)
! || parameters || type || description
|-
|-
| null || always return a null
| || - || object || any object
|-
|-
| || - || any object (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 15:55, 28 October 2015

test

List of MIDAS JSON-RPC methods
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[]