- Home
- Resources
- Access
GET /access
It allows to query Entities and Relations in the current Context.
It accepts idempotent query only..
For query syntax please refer to
https://orientdb.com/docs/last/SQL-Syntax.html
e.g. GET /resource-registry/access?query=SELECT FROM V
Request Parameters
| name |
type |
description |
constraints |
| fetchPlan |
query |
Defines the fetching strategy you want to use. See
https://orientdb.com/docs/last/Fetching-Strategies.html
|
|
| limit |
query |
Defines the number of results you want returned,
defaults to all results. |
int |
| query |
query |
Defines the query to send to the backend. |
|
Response Codes
| code |
condition |
| 200 |
Successful query |
| 400 |
Invalid or Non-Idempotent Query |
Response Body
| media type |
data type |
description |
| */* |
(custom)
|
The JSON representation of the result |
Example
Request
GET /access
Accept: */*
Response
HTTP/1.1 200 OK
Content-Type: */*
...
GET /access/facet/instance/{id}
e.g. GET /resource-registry/access/facet/instance/4d28077b-566d-4132-b073-f4edaf61dcb9
Request Parameters
| name |
type |
description |
| id |
path |
|
Response Body
| media type |
data type |
| */* |
(custom)
|
Example
Request
GET /access/facet/instance/{id}
Accept: */*
Response
HTTP/1.1 200 OK
Content-Type: */*
...
GET /access/facet/schema/{type}
e.g. GET /resource-registry/access/facet/schema/ContactFacet
Request Parameters
| name |
type |
description |
| type |
path |
|
Response Body
| media type |
data type |
| */* |
(custom)
|
Example
Request
GET /access/facet/schema/{type}
Accept: */*
Response
HTTP/1.1 200 OK
Content-Type: */*
...
GET /access/resource/instance/{id}
e.g. GET /resource-registry/access/resource/instance/cc132a2c-d0b0-45a8-92fa-7451f6a44b6d
Request Parameters
| name |
type |
description |
| id |
path |
|
Response Body
| media type |
data type |
| */* |
(custom)
|
Example
Request
GET /access/resource/instance/{id}
Accept: */*
Response
HTTP/1.1 200 OK
Content-Type: */*
...
GET /access/resource/schema/{type}
e.g. GET /resource-registry/access/resource/schema/HostingNode
Request Parameters
| name |
type |
description |
| type |
path |
|
Response Body
| media type |
data type |
| */* |
(custom)
|
Example
Request
GET /access/resource/schema/{type}
Accept: */*
Response
HTTP/1.1 200 OK
Content-Type: */*
...