0
0

Document Store Reference Manual

Docs
Docs EInnovator Posted 10 Jun 20

Document Store » Development » REST API

This section describes the REST API for the EInnovaetor Document Store.

Client applications are recommend to use one of the provided client libraries for the select language (a.k.a. language bindings)
as this simplifies and accelerates development. For apps developed in a languages for which there is no provided language binding (commercially supported or community contributed) or for which an alternative API is preferred
the REST API specification described here can be used as reference for guide new client library implementations.

Data Model

  • Document — Generic abstraction for storage object managed by the server
    includes:
    • File — with content (down-loadable payload) and meta-data
    • Folder — a list of Documents (a.k.a. Directories)
    • Link — a link or reference to other Document (a.k.a. Symbolic Link)
  • Authority — A permission assigned to a user or group for perform actions on a specific Document
  • Mount — A storage device or service attached to a integrated document tree

Support Data Model

  • DocumentFilter — A filter for Documents
  • DocumentOptions — Document retrieval options
  • RequestOptions — Document write operation options
  • PageOptions — Pagination Options

Documents Endpoints

This section describes endpoints for Document management.

Table below provides a quick summary:

MethodPathQuery ParametersRequest BodyResponse BodyStatusLogSecurityDescription
GET/api/__/{**:path}DocumentFilter
PageOptions
OK NOT_FOUNDlist List Documents in Folder
GET/api/_meta/{**:path}DocumentOptions Document meta Get Document Meta Details
POST/api/_copy/{**:path}DocumentOptions copy Copy Document
POST/api/_mkdir/{**:path}Document
DocumentOptions
mkdir Make Folder
POST/api/_rename/{**:path}DocumentOptions rename Rename Document
POST/api/_move/{**:path}DocumentOptions move Move Document
POST/api/_moveDocumentOptions moveMany Move Document
DELETE/api/_/{**:path}DocumentOptions NO_CONTENTdelete Delete document
DELETE/api/_rmDocumentOptionspath[] NO_CONTENTdeleteMany Delete Many Documents
POST/api/_restore/{**:path}DocumentOptions NO_CONTENTrestore Restore Document
POST/api/_sharing/{**:path}ShareType DocumentOptions NO_CONTENTsetSharing Update Sharing settings for Document
POST/api/_comment/{**:path}DocumentOptions enableComments Enable Comments for Document
DELETE/api/_attachment/{**:path}DocumentOptions deleteAttachment
POST/api/_create/{**:path}Document DocumentOptions CREATEDcreate

Authority Endpoints

This section describes endpoints for Document specific Authorities.

MethodPathQuery ParametersRequest BodyResponse BodyStatusLogSecurityDescription
GET/api/_auth/{**:path}DocumentOptions Authority[]OKlistAuthorities Get Authorities for Document
DELETE/api/_auth/{**:path}DocumentOptionsid[] NO_CONTENTdeleteManyAuthority Delete Many Authorities
POST/api/_auth/DocumentOptions resendInvite Resend Authority Invite
GET/api/_auth/{**}id
DocumentOptions
AuthorityOKgetAuthority Get Authority Details
POST/api/_auth/{**:path}DocumentOptionsAuthority CREATEDaddAuthority Add Authority
PUT/api/_auth/{**:path}DocumentOptionsAuthority updateAuthority Update Authority
DELETE /api/_auth/DocumentOptions deleteAuthority Delete Authority

Mounts Endpoints

MethodPathQuery ParametersRequest BodyResponse BodyLogSecurityDescription
DELETE/admin/mount/{mountId:.}
/mount/{mountId:.
}
DELETEAdminDelete Mount
GET/admin/mount
/mount
MountFilter listAdminGet Mount Details
GET/admin/mount/
/mount/
showAdminGet Mount Details
PUT/admin/mount/
/mount/
MounteditPut
GET/admin/mount//edit
/mount//edit
editGet
GET/admin/mount/create
/mount/create
StringcreateGET Mount
POST/admin/mount
/mount
createPOST Mount

Upload Endpoints

FileUploadController:

MethodPathQuery ParametersRequest BodyResponse BodyLogSecurityDescription
POST/api/_upload/{**:path}
/api/_upload
DocumentOptions MultipartHttpServletRequest upload
POST/_uploadMultipartFile DocumentMultipartFileMultipartHttpServletRequest DocumentOptions upload
Comments and Discussion

Content