Understanding the MapR-DB JSON REST API

The section describes the details of the MapR-DB 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-DB JSON table
DELETE /api/v2/table/{path} Drops a MapR-DB JSON table
Table Document Operations POST /api/v2/table/{path} Adds one or more documents to a MapR-DB JSON table
PUT /api/v2/table/{path}/document/{id} Updates a document by id in a MapR-DB JSON table
POST /api/v2/table/{path}/document/{id} Updates a partial document by id in a MapR-DB JSON table using mutations
DELETE /api/v2/table/{path}/document/{id} Deletes a single document by id in a MapR-DB JSON table
GET /api/v2/table/{path} Retrieves one or more documents from a MapR-DB JSON table
GET /api/v2/table/{path}/document/{id} Retrieves a single document by id from a MapR-DB JSON table