-
POST /api/json/get-objectsgive:
curl -XPOST -Hcontent-type:application/json -d'{"ids": ["a", "b", "c"]}' http://localhost:4000/api/json/get-objectsget:
{"data": [{"__typename": "EconomicResource", "id": "a", ...}, {"__typename": "EconomicEvent", "id": "b", ...}, {"__typename": "Process", "id": "c", ...}, ...]} -
POST /api/json/tracegive:
curl -XPOST -Hcontent-type:application/json -d'{"id": "01FSBW06DKPMY3F51RXGWNVATN", "recurseLimit": 2}' http://localhost:4000/api/json/traceget:
{"data": [{"__typename": "EconomicResource", "id": "a", ...}, {"__typename": "EconomicEvent", "id": "b", ...}, {"__typename": "Process", "id": "c", ...}, ...]} -
POST /api/json/trackgive:
curl -XPOST -Hcontent-type:application/json -d'{"id": "01FSBW06DKPMY3F51RXGWNVATN", "recurseLimit": 2}' http://localhost:4000/api/json/trackget:
{"data": [{"__typename": "EconomicResource", "id": "a", ...}, {"__typename": "EconomicEvent", "id": "b", ...}, {"__typename": "Process", "id": "c", ...}, ...]}
If you need the data to be not wrapped within an object with the data
key, you can pass the unwind boolean option with true value:
-
POST /api/json/get-objectsgive:
curl -XPOST -Hcontent-type:application/json -d'{"unwind": true, "ids": ["a", "b", "c"]}' http://localhost:4000/api/json/get-objectsget:
[{"__typename": "EconomicResource", "id": "a", ...}, {"__typename": "EconomicEvent", "id": "b", ...}, {"__typename": "Process", "id": "c", ...}, ...]