GET /api/v2/table/{path}/document/{id}
Retrieves a single document by id from a HPE Data Fabric Database JSON table
Parameters
| Name | Description |
|---|---|
| path
(path) |
Required: Path to the HPE Data Fabric Database JSON table |
| id
|
Required: Id of the document to retrieve |
| condition
(query) |
Query condition (in JSON format) to evaluate on document retrieved. See OJAI Query Condition Syntax for a description of the syntax. |
| fields
(query) |
The fields from the document to retrieve. See JSON Document Field Paths for details about how to specify field paths. |
| withTags
(query) |
Enables or disables output with extended type tags Value: True|False Default: True |
Request Example
The following retrieves the document with id
user003 from
/apps/employees:curl -X GET \
'https://10.10.100.42:8243/api/v2/table/%2Fapps%2Femployees/document/user003' \
-u <username>:<password>Response Example
200 OK
{
"_id": "user003",
"first_name": "Simon",
"last_name": "Davis"
}