2. Resources
2.1. Document-controller
Document Controller
2.1.1. Create Metadata / Create revision
POST /v2.0/documents
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
clientId |
client identifier |
string |
Body |
documentMetaInfo |
JSON input for document metadata creation or revision |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
object |
404 |
Not Found |
|
409 |
Conflict |
|
422 |
Unprocessable Entity |
2.1.2. Get documents
GET /v2.0/documents
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
clientId |
client identifier |
string |
|
Query |
documentId |
input can be document id / Couch URL / external URL |
string |
|
Query |
page |
page |
integer (int32) |
|
Query |
size |
size |
integer (int32) |
|
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
object |
404 |
Not Found |
|
409 |
Conflict |
|
422 |
Unprocessable Entity |
2.1.3. Upload document
PUT /v2.0/documents
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
clientId |
client identifier |
string |
Query |
docId |
docId |
string |
Query |
fileName |
fileName |
string |
Query |
rev |
rev |
string |
FormData |
file |
file |
file |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
object |
404 |
Not Found |
|
409 |
Conflict |
|
422 |
Unprocessable Entity |
2.1.4. Get document
GET /v2.0/documents/attachment
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
attachmentName |
attachmentName (required if documentId is not null) |
string |
Query |
clientId |
client identifier |
string |
Query |
documentId |
input can be document id / Couch URL |
string |
2.1.5. Get revisions
GET /v2.0/documents/{initialId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
initialId |
initial id |
string |
Query |
clientId |
client identifier |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< object > array |
404 |
Not Found |
|
409 |
Conflict |
|
422 |
Unprocessable Entity |
2.2. Document-reference-controller
Document Reference Controller
2.2.1. Create document reference
POST /v2.0/references
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
clientId |
clientId |
string |
Body |
documentReference |
Json input for document reference creation |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
object |
400 |
Bad Request |
|
401 |
Unauthorized |
|
422 |
Unprocessable Entity |
3. Definitions
3.1. Api error
Http Error response.
Name | Schema |
---|---|
errorCode |
string |
message |
string |
requestPath |
string |
status |
enum (100, 101, 102, 103, 200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 307, 308, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 426, 428, 429, 431, 451, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511) |
subErrors |
4. Security
4.1. access_token
Type : oauth2
Flow : accessCode
Token URL : https://10.181.213.234/uaa/oauth/authorize
Token URL : https://10.181.213.234/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.2. resource_owner
Type : oauth2
Flow : password
Token URL : https://10.181.213.234/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.3. implicit_grant
Type : oauth2
Flow : implicit
Token URL : https://10.181.213.234/uaa/oauth/authorize
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.4. client_creds
Type : oauth2
Flow : application
Token URL : https://10.181.213.234/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |