| GET | /document-permission/Pending-Access-Requests |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Status | query | DocumentApprovalStatus? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Page | form | int | No | |
| Limit | form | int | No |
| Pending | |
| Approved | |
| Rejected |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Total | form | int | No | |
| Code | form | int | No | |
| Message | form | string | Yes | |
| Requests | form | List<DocumentAccessRequestView> | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ApprovedByName | form | string | No | |
| RequestedName | form | string | No | |
| DocumentTitle | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| DocumentId | form | int | No | |
| RequestedBy | form | int | No | |
| RequestPermission | form | DocumentAccessPermissions | No | |
| Status | form | DocumentApprovalStatus | No | |
| CreatedDate | form | DateTime | No | |
| ApprovedBy | form | int? | No | |
| ApprovedDate | form | DateTime? | No | |
| Note | form | string | No | |
| Comment | form | string | No | |
| DueDate | form | DateTime? | No |
| Read | |
| Write | |
| GrantRead |
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /document-permission/Pending-Access-Requests HTTP/1.1 Host: etc-api.vsmlab.vn Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"total":0,"code":0,"message":"String","requests":[{"approvedByName":"String","requestedName":"String","documentTitle":"String","id":0,"documentId":0,"requestedBy":0,"requestPermission":"Read","status":"Pending","createdDate":"0001-01-01T00:00:00.0000000+07:06","approvedBy":0,"approvedDate":"0001-01-01T00:00:00.0000000+07:06","note":"String","comment":"String","dueDate":"0001-01-01T00:00:00.0000000+07:06"}]}