mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
222 lines
3.0 KiB
Markdown
222 lines
3.0 KiB
Markdown
|
|
# Endpoints Documentation
|
|
|
|
## 1. Get Actions
|
|
|
|
**Endpoint:**
|
|
```
|
|
GET https://gdapi-dev.dyndns.info/jwt/api/presidentialActions
|
|
```
|
|
|
|
**Query Parameters:**
|
|
None
|
|
|
|
**Body:**
|
|
None
|
|
|
|
---
|
|
|
|
## 2. Post Action
|
|
|
|
**Endpoint:**
|
|
```
|
|
POST https://gdapi-dev.dyndns.info/jwt/api/presidentialActions
|
|
```
|
|
|
|
**Query Parameters:**
|
|
None
|
|
|
|
**Body:**
|
|
```json
|
|
{
|
|
"ProcessId": null,
|
|
"Description": "teste 345",
|
|
"Detail": "teste",
|
|
"DateBegin": "2024-07-19T13:30:00.730Z",
|
|
"DateEnd": "2024-07-19T13:45:00.730Z",
|
|
"ActionType": "Evento"
|
|
}
|
|
```
|
|
|
|
---
|
|
|
|
## 3. Put Action
|
|
|
|
**Endpoint:**
|
|
```
|
|
PUT https://gdapi-dev.dyndns.info/jwt/api/presidentialActions
|
|
```
|
|
|
|
**Query Parameters:**
|
|
None
|
|
|
|
**Body:**
|
|
```json
|
|
{
|
|
"ProcessId": 15412,
|
|
"Description": "teste 345 45",
|
|
"Detail": "teste",
|
|
"DateBegin": "2024-07-19T14:30:00+01:00",
|
|
"DateEnd": "2024-07-19T14:45:00+01:00",
|
|
"ActionType": "Evento"
|
|
}
|
|
```
|
|
|
|
---
|
|
|
|
## 4. Delete Action
|
|
|
|
**Endpoint:**
|
|
```
|
|
DELETE https://gdapi-dev.dyndns.info/jwt/api/presidentialActions/{actionId}
|
|
```
|
|
|
|
**Query Parameters:**
|
|
None
|
|
|
|
**Body:**
|
|
None
|
|
|
|
---
|
|
|
|
## 5. Get Folder Info
|
|
|
|
**Endpoint:**
|
|
```
|
|
GET https://gdapi-dev.dyndns.info/jwt/api/presidentialActions/{actionId}
|
|
```
|
|
|
|
**Query Parameters:**
|
|
None
|
|
|
|
**Body:**
|
|
None
|
|
|
|
---
|
|
|
|
## 6. Get Publications IDs
|
|
|
|
**Endpoint:**
|
|
```
|
|
GET https://gdapi-dev.dyndns.info/jwt/api/presidentialActions/{actionId}/posts/ids
|
|
```
|
|
|
|
**Query Parameters:**
|
|
- `folderId`: The ID of the folder (e.g., `15388`)
|
|
|
|
**Body:**
|
|
None
|
|
|
|
---
|
|
|
|
|
|
## 7. Get publication
|
|
|
|
**Endpoint:**
|
|
```
|
|
GET https://gdapi-dev.dyndns.info/jwt/api/presidentialActions/v2/posts/{publicationId}
|
|
```
|
|
|
|
**Query Parameters:**
|
|
- `id`: The ID of the publication (e.g., `15388`)
|
|
|
|
**Body:**
|
|
None
|
|
|
|
---
|
|
|
|
## 8. Post publication
|
|
|
|
**Endpoint:**
|
|
```
|
|
POST https://gdapi-dev.dyndns.info/jwt/api/presidentialActions/{actionId}/v2/posts
|
|
```
|
|
|
|
**Query Parameters:**
|
|
None
|
|
|
|
|
|
**Body:**
|
|
```json
|
|
{
|
|
"DateIndex": "2024-07-19T15:07:09.348Z",
|
|
"DatePublication": "2024-07-19T15:07:09.348Z",
|
|
"DocumentId": null,
|
|
"Files": [{
|
|
"FileBase64": "data:image/jpeg;base64,.."
|
|
}],
|
|
"Message": "2024-07-19T14:45:00+01:00",
|
|
"ProcessId": 15388,
|
|
"Title": "554",
|
|
}
|
|
```
|
|
|
|
---
|
|
|
|
## 9. Put publication
|
|
|
|
**Endpoint:**
|
|
```
|
|
PUT https://gdapi-dev.dyndns.info/jwt/api/presidentialActions/{publicationId}/posts
|
|
```
|
|
|
|
**Query Parameters:**
|
|
None
|
|
|
|
**Body:**
|
|
```json
|
|
{
|
|
"DateIndex": "2024-07-19T15:07:09.348Z",
|
|
"DatePublication": "2024-07-19T15:07:09.348Z",
|
|
"DocumentId": 142663,
|
|
"Files": [{
|
|
"FileBase64": "data:image/jpeg;base64,.."
|
|
}],
|
|
"Message": "2024-07-19T14:45:00+01:00",
|
|
"ProcessId": 15388,
|
|
"Title": "554",
|
|
}
|
|
```
|
|
|
|
---
|
|
|
|
|
|
|
|
## 10. Delete publication
|
|
|
|
**Endpoint:**
|
|
```
|
|
Delete https://gdapi-dev.dyndns.info/jwt/api/presidentialActions/{actionId}/posts/{publicationId}
|
|
```
|
|
|
|
**Query Parameters:**
|
|
None
|
|
|
|
**Body:**
|
|
None
|
|
|
|
---
|
|
|
|
|
|
## 11. Post Chuck
|
|
|
|
**Endpoint:**
|
|
```
|
|
Post https://gdapi-dev.dyndns.info/jwt/api/ObjectServer/StreamFiles?path={path}
|
|
```
|
|
|
|
**Query Parameters:**
|
|
None
|
|
|
|
**Body:**
|
|
```json
|
|
{
|
|
"base64": "889234598237495...",
|
|
"index": 4,
|
|
"length": 15,
|
|
"path": "88d7c4f6-9e4b-47e3-ae93-8203384d14e5.mp4",
|
|
}
|
|
```
|
|
|
|
---
|