GET /api/v2/table/{path}/document/{id}

Retrieves a single document by id from a MapR Database JSON table

Parameters

Name Description
path

string

(path)

Required: Path to the MapR Database JSON table
id

string

(path)
Required: Id of the document to retrieve
condition

string

(query)

Query condition (in JSON format) to evaluate on document retrieved. See OJAI Query Condition Syntax for a description of the syntax.
fields

string

(query)

The fields from the document to retrieve. See JSON Document Field Paths for details about how to specify field paths.
withTags

string

(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 root:mapr

Response Example

200 OK

{
    "_id": "user003",
    "first_name": "Simon",
    "last_name": "Davis"
}