Leash Request Schema

This describes how the requests to the server must be composed.

The ‘*‘ signifies a required Field.

Schema for requests from Saxs Leash to Saxs Server

Type:

object

Contains:

command*, argument, sign, time

Required:

True

JSON Path:

Example JSON:

{"command": "close"}

command

Type:

string

values:

[close, abort, new, get, plot, plotdata, readdir, stat, listdir, fileslist, mergedata, getmergedata]

Required:

True

JSON Path:

Example JSON:

{"command": "close"}

argument

Type:

object

Contains:

calibration, mergeconf, data, directory

Required:

False

JSON Path:

Example JSON:

{"argument": {}}

calibration

Calibrarion data according to The Dedector Calibration File

Type:

object

Contains:

/

Required:

False

JSON Path:

Example JSON:

{"calibration": {}}

mergeconf

Datamerger Configuratioin

Type:

object

Contains:

/

Required:

False

JSON Path:

Example JSON:

{"mergeconf": {}}

data

type:

object

Required:

False

JSON Path:

Example JSON:

{"data": {}}

directory

type:

object

Required:

False

JSON Path:

Example JSON:

{"directory": {}}

sign

Signature of request

Type:

string

Required:

False

JSON Path:

Example JSON:

{"sign": ""}

time

time in seconds (pythons time.time())

Type:

number

Required:

False

JSON Path:

Example JSON:

{"time": 0}