Download OpenAPI specification:
"Moving" data access, Virtualizes data access to underlying persistence engines.
dataSourceId required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
{- "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "type": "DATASET_VERSION",
- "oClass": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Get 200 items from data source. It's possible to filter, and set more than one filter in query parameters.
dataSourceId required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
filter | string{{attribute_id}},{{OPERATOR}},{{value}},{{upp... Example: filter=uuid,INSIDE,2020,2022 Query parameter usage of FilterDto. The upperValue is necessary only with operator that accept it such as INSIDE and OUTSIDE. |
limit | integer <int32> (Limit) <= 1000 Default: 200 Example: limit=10 |
object{{is_sort_id}},{{attribute_id}},{{direction}}... Example: order=uuid,desc,METADATA&order=true,asc Query parameters usage to SortDto. | |
excludeGeo | boolean (ExcludeGeo) Default: true Parameter to exclude geographic data from queries. |
withSourceItems | boolean (WithSourceItems) Default: false Parameter to include source items from relations in search result. |
withDestinationItems | boolean (WithDestinationItems) Default: false Parameter to include destination items from relations in search result. |
{- "items": {
- "oclass_id_1": [
- {
- "oClass": "23fee6a5-5edc-4b37-a74c-47d8022e81b3",
- "id": "1c012961-aced-4492-9a73-dff067a2a611@61837c2e-408c-4f13-9fea-fac4f69c38a8",
- "metadata": {
- "_insertion_date": "2023-06-27T07:14:00.228606022",
- "datasetdef_id": "23fee6a5-5edc-4b37-a74c-47d8022e81b4",
- "_dataset_id": "23fee6a5-5edc-4b37-a74c-47d8022e81b4",
- "_item_id": "23fee6a5-5edc-4b37-a74c-47d8022e81b4",
- "_class": "23fee6a5-5edc-4b37-a74c-47d8022e81b4"
}, - "attributes": {
- "Classification": {
- "type": "VALUE",
- "value": "Conifères",
- "metadata": { },
- "visible": true
}, - "Pourcentage surface": {
- "value": "6.82",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Année": {
- "value": "2020",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}
}, - "itemId": "61837c2e-408c-4f13-9fea-fac4f69c38a8"
}, - {
- "oClass": "961e7d76-2bde-4b56-bc08-ed073c50056a",
- "id": "1c012961-aced-4492-9a73-dff067a2a611@61837c2e-408c-4f13-9fea-fac4f69c38a8",
- "metadata": {
- "_insertion_date": "2023-06-27T07:14:00.228606022",
- "datasetdef_id": "dataset_id_1",
- "_dataset_id": "dataset_version_id_1",
- "_item_id": "1c012961-aced-4492-9a73-dff067a2a611@61837c2e-408c-4f13-9fea-fac4f69c38a8",
- "_class": "961e7d76-2bde-4b56-bc08-ed073c50056a"
}, - "attributes": {
- "Classification": {
- "value": "Conifères",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Pourcentage surface": {
- "value": "6.66",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Année": {
- "value": "2021",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}
}, - "itemId": "61837c2e-408c-4f13-9fea-fac4f69c38a8"
}
]
}, - "relations": [ ],
- "count": {
- "oclass_id_1": {
- "count": 115,
- "accurate": true
}
}, - "searchAfter": null
}
Get 200 items from data source.
It is possible to search on one or more classes. On Mono class search, it returns items from all active datasets. It's possible to specify dataset versions ids. 200 items are returned. This limit can be adjusted, but cannot exceed 1000. Items can be sorted. Works only with a Mono Class search. If a sort is set, then the next page of results can be retrieved by specifying the "searchAfter" value of the first search result. This property has a ttl: once the time has elapsed, you'll have to restart the search from the beginning. It's also possible to add one or more filters in query parameters and sort your results.
dataSourceId required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
filter | string{{attribute_id}},{{OPERATOR}},{{value}},{{upp... Example: filter=uuid,INSIDE,2020,2022 Query parameter usage of FilterDto. The upperValue is necessary only with operator that accept it such as INSIDE and OUTSIDE. |
object{{is_sort_id}},{{attribute_id}},{{direction}}... Example: order=uuid,desc,METADATA&order=true,asc Query parameters usage to SortDto. |
oClass | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
datasetVersionIds | Array of strings <uuid> (UUID) [ items <uuid >[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... ] |
any (ConditionDto) | |
object (SortDto) | |
searchAfter | string or null |
type | string (SearchRequestType) |
object (FullSearchConditionDto) | |
limit | integer <int32> (Limit) <= 1000 Default: 200 |
excludeGeo | boolean (ExcludeGeo) Default: true Parameter to exclude geographic data from queries. |
withSourceItems | boolean (WithSourceItems) Default: false Parameter to include source items from relations in search result. |
withDestinationItems | boolean (WithDestinationItems) Default: false Parameter to include destination items from relations in search result. |
object (RelationDto) |
Returns items from oclass oclass_id_1.
{- "type": "MONO_CLASS",
- "oClass": "23fee6a5-5edc-4b37-a74c-47d8022e81b4"
}
{- "items": {
- "cdc75747-26b3-4dc7-990c-189028d7a882": [
- {
- "oClass": "cdc75747-26b3-4dc7-990c-189028d7a882",
- "id": "7ebf0872-bfe8-418a-b7cc-32b32d9e57fa@ba306efd-0bf7-4844-b067-8a4eb0d546c7",
- "metadata": {
- "_insertion_date": "2023-06-27T07:14:00.228606022",
- "datasetdef_id": "cd32bd15-4e44-44c6-8c4d-4866a425af06",
- "_dataset_id": "7ebf0872-bfe8-418a-b7cc-32b32d9e57fa",
- "_item_id": "7ebf0872-bfe8-418a-b7cc-32b32d9e57fa@ba306efd-0bf7-4844-b067-8a4eb0d546c7",
- "_class": "cdc75747-26b3-4dc7-990c-189028d7a882"
}, - "attributes": {
- "Classification": {
- "value": "Conifères",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Pourcentage surface": {
- "value": "6.82",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Année": {
- "value": "2020",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}
}, - "itemId": "8bbafd7a-82b2-4f4d-badd-96a5d09326ab"
}, - {
- "oClass": "8bbafd7a-82b2-4f4d-badd-96a5d09326ac",
- "id": "7ebf0872-bfe8-418a-b7cc-32b32d9e57fa@ba306efd-0bf7-4844-b067-8a4eb0d546c7",
- "metadata": {
- "_insertion_date": "2023-06-27T07:14:00.228606022",
- "datasetdef_id": "cd32bd15-4e44-44c6-8c4d-4866a425af06",
- "_dataset_id": "7ebf0872-bfe8-418a-b7cc-32b32d9e57fa",
- "_item_id": "7ebf0872-bfe8-418a-b7cc-32b32d9e57fa@ba306efd-0bf7-4844-b067-8a4eb0d546c7",
- "_class": "8bbafd7a-82b2-4f4d-badd-96a5d09326ac"
}, - "attributes": {
- "Classification": {
- "value": "Conifères",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Pourcentage surface": {
- "value": "6.66",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Année": {
- "value": "2021",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}
}, - "itemId": "ba306efd-0bf7-4844-b067-8a4eb0d546c7"
}
]
}, - "relations": [ ],
- "count": {
- "oclass_id_1": {
- "count": 115,
- "accurate": true
}
}, - "searchAfter": null
}
Named query must reference a mono class request. Only aggregatedBy is required. The default operation is count.
dataSourceId required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
aggregatedBy required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... Example: aggregatedBy=tree_AttributeId |
dateInterval | string (DateInterval) Enum: "SECOND" "MINUTE" "HOUR" "WEEK" "QUARTER" "YEAR" Examples:
|
filter | string{{attribute_id}},{{OPERATOR}},{{value}},{{upp... Example: filter=uuid,INSIDE,2020,2022 Query parameter usage of FilterDto. The upperValue is necessary only with operator that accept it such as INSIDE and OUTSIDE. |
groupBy | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... Examples:
|
interval | number <double> Examples:
|
operation | string (AggregateOperation) Enum: "count" "max" "min" "avg" "sum" "cardinality" "median" "q1" "q3" "extent" Examples:
|
object Query parameter usage to SortAggregate. | |
valueField | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... Examples:
|
excludeGeo | boolean (ExcludeGeo) Default: true Parameter to exclude geographic data from queries. |
limit | integer <int32> (Limit) <= 1000 Default: 200 Example: limit=10 |
aggregation with only aggregatedBy. Return the count of each trees.
{- "operation": "count",
- "values": [
- {
- "key": "coniferes",
- "value": 4
}, - {
- "key": "feuillus",
- "value": 8
}
]
}
This endpoint is used to retrieve a list of possible values for an attribute in a datasource. The datasource available for this endpoint are Dataset and DatasetVersion
filter | string{{attribute_id}},{{OPERATOR}},{{value}},{{upp... Example: filter=uuid,INSIDE,2020,2022 Query parameter usage of FilterDto. The upperValue is necessary only with operator that accept it such as INSIDE and OUTSIDE. |
value | string |
limit | integer <int32> (Limit) <= 1000 Default: 200 |
Array of objects (AttributeByDatasource) |
[- {
- "value": "mar",
- "limit": 10,
- "attributes": [
- {
- "datasource": "bab8e793-5207-42ca-9a8b-87eb0b31d8dc",
- "attribute": "7c3052a5-8228-4034-b37b-9c5cc5369b25"
}
]
}
]
[- "marie",
- "marianne",
- "marin"
]
Import data by adding ItemDto list directly in a new version of a closed dataset
datasetId required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... Dataset id |
id required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... Dataset version id that will be created |
id | string |
oClass | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
object | |
object | |
datasetVersionId | string |
itemId | string |
[- {
- "oClass": "4c20ec9d-ff2d-405b-9d59-e8153b05c560",
- "id": "f320a245-bfe8-476b-ad85-b700bf92b2b0@e787d244-a871-42db-b5bd-81caa2328990",
- "metadata": {
- "_insertion_date": "2023-06-27T07:14:00.228606022",
- "datasetdef_id": "f320a245-bfe8-476b-ad85-b700bf92b2b0",
- "_dataset_id": "e787d244-a871-42db-b5bd-81caa2328990",
- "_item_id": "f320a245-bfe8-476b-ad85-b700bf92b2b0@e787d244-a871-42db-b5bd-81caa2328990",
- "_class": "06a7a9ef-811e-4c83-923c-5204dc5b95af"
}, - "attributes": {
- "Classification": {
- "value": "Conifères",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Pourcentage surface": {
- "value": "6.82",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Année": {
- "value": "2020",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}
}, - "itemId": "765dada9-0f13-4b17-839c-56e2d8467ff9"
}
]
{- "application": "data-virt",
- "code": "BAD_REQUEST",
- "message": "Item {{item_id}} cannot be added due to different OClassId with its Dataset"
}
Save file which will be linked to an item
file | string <binary> |
filename | string Name of the file (unique identifier). If filename is not sent, file identifier is generated with random UUID (returned is response). |
{- "application": "data-virt",
- "code": "BAD_REQUEST",
- "message": "File is required."
}
Download file linked to an item by using the id generated during the upload. It's possible to retrieve part of the file by specifying the range in headers.
id required | string File id |
Range | string Example: bytes=440000-882069 |
Service used for saving an icon for oClass customization or an illustration for widget and dashboard.
type | object Enum: "icon" "illustration" Example: type=icon Image category |
file | string <binary> |
{- "application": "data-virt",
- "code": "BAD_REQUEST",
- "message": "Type is required."
}
Return the name of all uploaded icons and illustrations, with their corresponding type. It's possible to filter on type to get all icons or all illustrations.
type | object Enum: "icon" "illustration" Example: type=icon Image type |
[- {
- "image": "icon.png",
- "type": [
- "icon"
]
}, - {
- "image": "arbre.png",
- "type": [
- "illustration"
]
}
]
Download the icon or illustration by using the id generated during the upload
name required | string Icon or illustration id |
{- "code": 404,
- "message": "Entity : ac2c1a7f-0694-4f03-bb00-d349adeecd3d inexistant."
}
Type is necessary when uploading an icon or illustration, but it's possible to add a additional types with this endpoint.
id required | string Icon or illustration id |
type required | string type to add |
{- "application": "data-virt",
- "code": "BAD_REQUEST",
- "message": "Type {{type}} already exists for file {{file_id}}"
}
Asynchronous data import that support csv file and zipped shapefile. It returns the created dataset version for dataset. NormalizeGeo is used to specify whether a shapefile should be normalized. For example, if a shapefile contains a polygon and a multi-polygon, set this property to true. ChunkSize is used to specify the number of items per chunk that data-virt will hold in memory during import.
datasetId required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... Dataset id |
file | string <binary> |
normalizeGeo | boolean Default: false |
chunkSize | integer |
object (DatasetVersionInformationDto) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dataset": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my dataset",
- "oClass": "04c4759f-4d1b-48af-be42-deac3d5dca7a",
- "type": "CLOSED",
- "metadata": [
- {
- "value": "my_value",
- "metadataDef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my metadata definition",
- "type": "INTEGER",
- "description": "metadata definition description",
- "allowedValues": [
- "string"
], - "slug": "87280_my_metadata_definition",
- "readOnly": true,
- "system": true
}
}
], - "groups": [
- "first_group",
- "second_group"
], - "description": "my description",
- "owner": false,
- "slug": "string",
- "categories": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "category_name"
}
], - "activeVersion": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dataset": "d93f2be0-02b1-4d87-8b6e-fc5cba21ed8d",
- "oClass": "04c4759f-4d1b-48af-be42-deac3d5dca7a",
- "lastModified": "2022-03-10T16:15:50Z",
- "version": 0,
- "state": "LOADING",
- "withFile": true,
- "producer": "string",
- "productionDate": "2022-03-10T16:15:50Z",
- "additionalInformation": "string"
}
}, - "oClass": "04c4759f-4d1b-48af-be42-deac3d5dca7a",
- "lastModified": "2022-03-10T16:15:50Z",
- "version": 2,
- "state": "LOADING",
- "withFile": false,
- "metadata": [
- {
- "value": "my_value",
- "metadataDef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my metadata definition",
- "type": "INTEGER",
- "description": "metadata definition description",
- "allowedValues": [
- "string"
], - "slug": "87280_my_metadata_definition",
- "readOnly": true,
- "system": true
}
}
], - "hasWarnings": false
}
Adds (or updates) items in the dataset version of an open or modifiable dataset. The updateMode parameter is optional, used only for updating items that are already known. It can be set to :
updateMode | string (ItemUpdateMode) Enum: "REPLACE" "MERGE" Mode of update operation |
id | string |
oClass | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
object | |
object | |
datasetVersionId | string |
itemId | string |
[- {
- "id": "string",
- "oClass": "04c4759f-4d1b-48af-be42-deac3d5dca7a",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "attributes": {
- "property1": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}, - "property2": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}
}, - "datasetVersionId": "string",
- "itemId": "string"
}
]
[- {
- "id": "string",
- "oClass": "04c4759f-4d1b-48af-be42-deac3d5dca7a",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "attributes": {
- "property1": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}, - "property2": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}
}, - "datasetVersionId": "string",
- "itemId": "string"
}
]
{- "id": "string",
- "oClass": "04c4759f-4d1b-48af-be42-deac3d5dca7a",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "attributes": {
- "property1": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}, - "property2": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}
}, - "datasetVersionId": "string",
- "itemId": "string"
}
required | object (ItemId) Item id |
{- "items": {
- "property1": [
- {
- "id": "string",
- "oClass": "04c4759f-4d1b-48af-be42-deac3d5dca7a",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "attributes": {
- "property1": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}, - "property2": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}
}, - "datasetVersionId": "string",
- "itemId": "string"
}
], - "property2": [
- {
- "id": "string",
- "oClass": "04c4759f-4d1b-48af-be42-deac3d5dca7a",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "attributes": {
- "property1": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}, - "property2": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}
}, - "datasetVersionId": "string",
- "itemId": "string"
}
]
}, - "relations": [
- {
- "relationType": "string",
- "source": "string",
- "destination": "string"
}
], - "count": {
- "property1": {
- "count": 0,
- "accurate": true
}, - "property2": {
- "count": 0,
- "accurate": true
}
}, - "searchAfter": "string",
- "geoFormat": "GEO_JSON",
- "sourceItems": {
- "property1": [
- {
- "id": "string",
- "oClass": "04c4759f-4d1b-48af-be42-deac3d5dca7a",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "attributes": {
- "property1": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}, - "property2": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}
}, - "datasetVersionId": "string",
- "itemId": "string"
}
], - "property2": [
- {
- "id": "string",
- "oClass": "04c4759f-4d1b-48af-be42-deac3d5dca7a",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "attributes": {
- "property1": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}, - "property2": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}
}, - "datasetVersionId": "string",
- "itemId": "string"
}
]
}, - "destinationItems": {
- "property1": [
- {
- "id": "string",
- "oClass": "04c4759f-4d1b-48af-be42-deac3d5dca7a",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "attributes": {
- "property1": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}, - "property2": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}
}, - "datasetVersionId": "string",
- "itemId": "string"
}
], - "property2": [
- {
- "id": "string",
- "oClass": "04c4759f-4d1b-48af-be42-deac3d5dca7a",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "attributes": {
- "property1": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}, - "property2": {
- "type": "VALUE",
- "metadata": {
- "property1": { },
- "property2": { }
}, - "value": "string",
- "visible": false
}
}, - "datasetVersionId": "string",
- "itemId": "string"
}
]
}
}
required | object (ItemId) Item id |
attributeName required | string Attribute name |
metadataName required | string Metadata name |
value required | string Metadata value |
{- "application": "data-virt",
- "code": "BAD_REQUEST",
- "message": "Unknown metadata {{metadata_name}}"
}
required | object (ItemId) id de l'item |
metadataName required | string metadata name |
value required | string metadata value |
{- "application": "data-virt",
- "code": "BAD_REQUEST",
- "message": "Unknown metadata {{metadata_name}}"
}
It is possible to search on one or more classes. On Mono class search, it returns items from all active datasets. It's possible to specify dataset versions ids. 200 items are returned. This limit can be adjusted, but cannot exceed 1000. Items can be sorted. Works only with a Mono Class search. If a sort is set, then the next page of results can be retrieved by specifying the "searchAfter" value of the first search result. This property has a ttl: once the time has elapsed, you'll have to restart the search from the beginning.
object{{is_sort_id}},{{attribute_id}},{{direction}}... Example: order=uuid,desc,METADATA&order=true,asc Query parameters usage to SortDto. |
oClass | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
datasetVersionIds | Array of strings <uuid> (UUID) [ items <uuid >[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... ] |
any (ConditionDto) | |
object (SortDto) | |
searchAfter | string or null |
type | string (SearchRequestType) |
object (FullSearchConditionDto) | |
limit | integer <int32> (Limit) <= 1000 Default: 200 |
excludeGeo | boolean (ExcludeGeo) Default: true Parameter to exclude geographic data from queries. |
withSourceItems | boolean (WithSourceItems) Default: false Parameter to include source items from relations in search result. |
withDestinationItems | boolean (WithDestinationItems) Default: false Parameter to include destination items from relations in search result. |
object (RelationDto) |
Returns items from oclass oclass_id_1.
{- "type": "MONO_CLASS",
- "oClass": "e6188d57-13d1-4fe0-affc-36356e9273d4"
}
{- "items": {
- "4c20ec9d-ff2d-405b-9d59-e8153b05c560": [
- {
- "oClass": "4c20ec9d-ff2d-405b-9d59-e8153b05c560",
- "id": "f320a245-bfe8-476b-ad85-b700bf92b2b0@e787d244-a871-42db-b5bd-81caa2328990",
- "metadata": {
- "_insertion_date": "2023-06-27T07:14:00.228606022",
- "datasetdef_id": "f320a245-bfe8-476b-ad85-b700bf92b2b0",
- "_dataset_id": "e787d244-a871-42db-b5bd-81caa2328990",
- "_item_id": "f320a245-bfe8-476b-ad85-b700bf92b2b0@e787d244-a871-42db-b5bd-81caa2328990",
- "_class": "06a7a9ef-811e-4c83-923c-5204dc5b95af"
}, - "attributes": {
- "Classification": {
- "value": "Conifères",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Pourcentage surface": {
- "value": "6.82",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Année": {
- "value": "2020",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}
}, - "itemId": "765dada9-0f13-4b17-839c-56e2d8467ff9"
}, - {
- "oClass": "4c20ec9d-ff2d-405b-9d59-e8153b05c560",
- "id": "f320a245-bfe8-476b-ad85-b700bf92b2b0@765dada9-0f13-4b17-839c-56e2d8467ff9",
- "metadata": {
- "_insertion_date": "2023-06-27T07:14:00.228606022",
- "datasetdef_id": "e759cb7a-ec90-4cce-8c08-4b267e4f295c",
- "_dataset_id": "f320a245-bfe8-476b-ad85-b700bf92b2b0",
- "_item_id": "f320a245-bfe8-476b-ad85-b700bf92b2b0@765dada9-0f13-4b17-839c-56e2d8467ff9",
- "_class": "4c20ec9d-ff2d-405b-9d59-e8153b05c560"
}, - "attributes": {
- "Classification": {
- "value": "Conifères",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Pourcentage surface": {
- "value": "6.66",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Année": {
- "value": "2021",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}
}, - "itemId": "765dada9-0f13-4b17-839c-56e2d8467ff9"
}
]
}, - "relations": [ ],
- "count": {
- "4c20ec9d-ff2d-405b-9d59-e8153b05c560": {
- "count": 115,
- "accurate": true
}
}, - "searchAfter": null
}
Search criteria are stored in a named query. It's possible to add a limit and a order like the classic search.
nameQueryId required | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... named query id |
limit | integer <int32> (Limit) <= 1000 Default: 200 Example: limit=10 |
object{{is_sort_id}},{{attribute_id}},{{direction}}... Example: order=uuid,desc,METADATA&order=true,asc Query parameters usage to SortDto. |
{- "items": {
- "a1716102-b543-4b44-8e6d-33c0034f56f5": [
- {
- "oClass": "765dada9-0f13-4b17-839c-56e2d8467ff9",
- "id": "dataset_version_id_1@b6ce58ac-edf7-49e3-8a23-580145bdd573",
- "metadata": {
- "_insertion_date": "2023-06-27T07:14:00.228606022",
- "datasetdef_id": "dataset_id_1",
- "_dataset_id": "a4cd5d5b-3cb0-4d70-af9d-838c7d162e59",
- "_item_id": "a4cd5d5b-3cb0-4d70-af9d-838c7d162e59@b6ce58ac-edf7-49e3-8a23-580145bdd573",
- "_class": "a1716102-b543-4b44-8e6d-33c0034f56f5"
}, - "attributes": {
- "Classification": {
- "value": "Conifères",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Pourcentage surface": {
- "value": "6.82",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Année": {
- "value": "2020",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}
}, - "itemId": "b6ce58ac-edf7-49e3-8a23-580145bdd573"
}, - {
- "oClass": "a1716102-b543-4b44-8e6d-33c0034f56f5",
- "id": "a4cd5d5b-3cb0-4d70-af9d-838c7d162e59@b6ce58ac-edf7-49e3-8a23-580145bdd573",
- "metadata": {
- "_insertion_date": "2023-06-27T07:14:00.228606022",
- "datasetdef_id": "dataset_id_1",
- "_dataset_id": "a4cd5d5b-3cb0-4d70-af9d-838c7d162e59",
- "_item_id": "a4cd5d5b-3cb0-4d70-af9d-838c7d162e59@b6ce58ac-edf7-49e3-8a23-580145bdd573",
- "_class": "a1716102-b543-4b44-8e6d-33c0034f56f5"
}, - "attributes": {
- "Classification": {
- "value": "Conifères",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Pourcentage surface": {
- "value": "6.66",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}, - "Année": {
- "value": "2021",
- "type": "VALUE",
- "metadata": { },
- "visible": true
}
}, - "itemId": "b6ce58ac-edf7-49e3-8a23-580145bdd573"
}
]
}, - "relations": [ ],
- "count": {
- "a1716102-b543-4b44-8e6d-33c0034f56f5": {
- "count": 115,
- "accurate": true
}
}, - "searchAfter": null
}
Registers a relation between two attributes of different oClasses
to link items of these oClasses. It creates a new item in the relation
index in elasticsearch.
The relationType must first be registered in data-ref
service.
relationType | string |
source | string |
destination | string |
[- {
- "relationType": "string",
- "source": "string",
- "destination": "string"
}
]
Deleting a relation implies the dissociation between items linked by the relation.
relationType | string |
source | string |
destination | string |
{- "relationType": "string",
- "source": "string",
- "destination": "string"
}
Data Link automatically analyze which relation is deprecated,
and update them by calling this endpoint with the aggregateId
and the link
which is the
id of the attribute on which to delete and remake the relation.
link | string <uuid> (UUID) [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-... |
aggregateId | string |
source | Array of strings |
dest | Array of strings |
[- {
- "link": "857d5352-31ec-481f-999c-13710791601a",
- "aggregateId": "string",
- "source": [
- "string"
], - "dest": [
- "string"
]
}
]