API | URI | HTTP Method | Content | Description | Role/Permission |
GetAllDatabases |
/namespaceName |
GET |
none |
Return the name of each Database defined in the namespaceName Namespace. |
%DocDB_Admin/USE |
DropAllDatabases |
/namespaceName |
DELETE |
none |
Delete all of the databases defined in the namespaceName namespace. |
%DocDB_Admin/USE |
CreateDatabase |
/namespaceName/db/databaseName ?type= documentType& resource= databaseResource |
POST |
none |
Create a new Database in the namespaceName namespace. |
%DocDB_Admin/USE |
DropDatabase |
/namespaceName/db/ databaseName |
DELETE |
none |
Drop the databaseName database from namespaceName namespace. |
%DocDB_Admin/USE |
GetDatabase |
/namespaceName/db/ databaseName |
GET |
none |
Return the databaseName database definition. This function is also sufficient for DatabaseExists. |
defined resource/USE |
CreateProperty |
/namespaceName/ prop/databaseName/ propertyName?type= propertyType& path= propertyPath& unique=propertyUnique |
POST |
none |
Create a new property or replace an existing property in databaseName. The property is defined by URL parameters and not Content. All parameters are optional. |
%DocDB_Admin/USE |
DropProperty |
/namespaceName/prop/ databaseName /propertyName |
DELETE |
none |
Remove a property definition from databaseName. |
%DocDB_Admin/USE |
GetProperty |
/namespaceName/prop/ databaseName/ propertyName |
GET |
none |
Return the property definition from databaseName. |
defined resource/USE |
SaveDocument |
/namespaceName/doc/databaseName/ |
POST |
JSON object or array |
Insert a new document into databaseName. |
defined resource/WRITE |
SaveDocument |
/namespaceName/doc/ databaseName/id |
PUT |
JSON object or array |
Replace an existing document in databaseName. |
defined resource/WRITE |
SaveDocumentByKey |
/namespaceName/doc/ databaseName/keyPropertyName/keyValue |
PUT |
JSON object or array |
Replace an existing document in databaseName. |
defined resource/WRITE |
DeleteDocument |
/namespaceName/doc/ databaseName/id |
DELETE |
none |
Delete the document from the database. |
defined resource/WRITE |
DeleteDocumentByKey |
/namespaceName/doc/ databaseName/keyPropertyName/keyValue |
DELETE |
none |
Delete the document from the database. |
defined resource/WRITE |
FindDocuments |
/namespaceName/ find/databaseName? wrapped=true|false |
POST |
JSON object |
Find all documents in databaseName matching the query specification. |
defined resource/USE |
GetDocument |
/namespaceName/doc/ databaseName/id? wrapped=true|false |
GET |
none |
Return the requested document. |
defined resource/READ |
GetDocumentByKey |
/namespaceName/doc/ databaseName /keyPropertyName /keyValue |
POST |
None |
Retrieve a document by a property defined as a unique key. |
defined resource/READ |