Download OpenAPI specification:
Module-owned API fragment and source of truth for the DocShare module's HTTP boundary: per-file owner/editor/viewer sharing, enforced by authz object-mode checks on every read/write, never by the read-side index alone. All paths live under service.basePath (/api/docs), with the major version inside the module's own path space (/v1).
| companyId required | string <uuid> |
{- "data": {
- "owned": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",
- "title": "string",
- "body": "string",
- "ownerKcSub": "string",
- "myRelation": "owner",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "sharedWithMe": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",
- "title": "string",
- "body": "string",
- "ownerKcSub": "string",
- "myRelation": "owner",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
}| companyId required | string <uuid> |
| Idempotency-Key | string <= 200 characters |
| title required | string [ 1 .. 200 ] characters |
| body required | string |
{- "title": "string",
- "body": "string"
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",
- "title": "string",
- "body": "string",
- "ownerKcSub": "string",
- "myRelation": "owner",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| companyId required | string <uuid> |
| docId required | string <uuid> |
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",
- "title": "string",
- "body": "string",
- "ownerKcSub": "string",
- "myRelation": "owner",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| companyId required | string <uuid> |
| docId required | string <uuid> |
| title required | string [ 1 .. 200 ] characters |
| body required | string |
{- "title": "string",
- "body": "string"
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",
- "title": "string",
- "body": "string",
- "ownerKcSub": "string",
- "myRelation": "owner",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| companyId required | string <uuid> |
| docId required | string <uuid> |
{- "data": [
- {
- "occurredAt": "2019-08-24T14:15:22Z",
- "actor": "string",
- "action": "string",
- "subject": "string",
- "payload": null
}
]
}| companyId required | string <uuid> |
| page | integer >= 1 Default: 1 |
| pageSize | integer [ 1 .. 100 ] Default: 25 |
{- "data": {
- "items": [
- {
- "occurredAt": "2019-08-24T14:15:22Z",
- "actor": "string",
- "action": "string",
- "subject": "string",
- "payload": null
}
], - "total": 0,
- "page": 0,
- "pageSize": 0,
- "totalPages": 0
}
}