Understanding the MapR Database JSON REST API
The section describes the details of the MapR Database JSON REST API.
The following table summarizes the commands the API supports. Click on the command for details about the command parameters and examples.
Category | REST API Command | Description |
---|---|---|
Authentication | POST /auth/v2/token | Creates an authentication token |
Table Operations | PUT /api/v2/table/{path} | Creates a MapR Database JSON table |
DELETE /api/v2/table/{path} | Drops a MapR Database JSON table | |
Table Document Operations | POST /api/v2/table/{path} | Adds one or more documents to a MapR Database JSON table |
PUT /api/v2/table/{path}/document/{id} | Updates a document by id in a MapR Database JSON table | |
POST /api/v2/table/{path}/document/{id} | Updates a partial document by id in a MapR Database JSON table using mutations | |
DELETE /api/v2/table/{path}/document/{id} | Deletes a single document by id in a MapR Database JSON table | |
GET /api/v2/table/{path} | Retrieves one or more documents from a MapR Database JSON table | |
GET /api/v2/table/{path}/document/{id} | Retrieves a single document by id from a MapR Database JSON table |