You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"sourceZone": string, "destinationZone": string, "successive": boolean, "edges": ["fromName/toName/permissions/trace", ..]} where trace can be empty string
Return type
void
Basic queries about structure of the graph (edges)
Check if edge exists
Path
/is_adjacent
Method
POST
Params
from
to
Body
void
Return type
boolean
Get permissions of the edge
Path
/permissions
Method
POST
Params
from
to
Body
void
Return type
string
Get parents of given vertex
Path
/list_adjacent
Method
POST
Params
of
Body
void
Return type
list(string)
Get children of given vertex
Path
/list_adjacent_reversed
Method
POST
Params
of
Body
void
Return type
list(string)
Meta Info - Server Config
Health check to determine if server is running
Path
/healthcheck
Method
GET
Params
none
Body
void
Return type
void
Index ready - checks if there are any waiting or currently processed events in this zone
Path
/index_ready
Method
GET
Params
none
Body
void
Return type
boolean
Enable/Disable indexation
Path
/indexation
Method
PUT
Params
none
Body
enabled: boolean
Return type
void
Enable/Disable instrumentation
Path
/instrumentation
Method
PUT
Params
none
Body
enabled: boolean
Return type
void
Check if instrumentation is enabled
Path
/instrumentation
Method
GET
Params
none
Body
void
Return type
boolean
Dependent Zones - check if needed zones are running and to get stats about them
DEPRECATED: its sole purpose is for Kamil's integration tests
Path
/dependent_zones
Method
POST
Params
none
Body
list(string)
Return type
{"zones": list(string)}
Load simulation
Run batch of operations
Path
/simulate_load
Method
POST
Params
none
Body
{"ops": [{..}, .., {..}]} Where inner objects have fields <"t" - operation type {"a", "r", "p"}, "f" - from, "to" - to, "p" - permissions, "tr" - trace>
Return type
void
Main Functionality: Queries about relations between any vertices in the graph
ISO-8601 Format
In responses described in this section there is a field called "duration",
that stores time needed to execute the request.
That duration is stored as string in format given by ISO-8601 standard,
described here.
For the needs of our application we can assume that duration is smaller than 1 minute.
In that case, string looks like this:
"PTxS",
where x is a floating-point number with 6 decimal places, describing number of seconds
(the integer part) and microseconds (the fractional part).
WARNING: in current state our server doesn't send times longer than 24 hours.
Check existence of path (is 'from' effective child of 'to'?)
Path
/naive/reaches /indexed/reaches
Method
POST
Params
from
to
Body
void
Return type
{"duration": Time-ISO-8601, "reaches": boolean}
Get effective permissions 'from' possesses about 'to'