2023-08-24 17:28:00 +01:00
|
|
|
# API Docs
|
|
|
|
|
|
|
|
**Description:**
|
|
|
|
|
|
|
|
**Version:** `v0`
|
|
|
|
|
2023-08-24 17:55:59 +01:00
|
|
|
<h2 id='list-of-endpoints'>List of Endpoints</h2>
|
|
|
|
|
2023-08-28 14:43:15 +01:00
|
|
|
* Documents
|
2023-09-25 13:08:33 +01:00
|
|
|
* [Get One](#documents-get-one)
|
2023-08-28 14:43:15 +01:00
|
|
|
* [Update Content](#documents-update-content)
|
2023-08-24 17:28:00 +01:00
|
|
|
|
2023-09-25 13:08:33 +01:00
|
|
|
<h3 id='documents-get-one'>Get One (<a href='#list-of-endpoints'>go to full list</a>)</h3>
|
|
|
|
|
|
|
|
Get one document with the specified version
|
|
|
|
|
|
|
|
`GET /api/v0/docs/{path}`
|
|
|
|
|
|
|
|
**Path Params:**
|
|
|
|
|
|
|
|
| name | type | elaboration |
|
|
|
|
|---|---|---|
|
|
|
|
| `path` | `string` | |
|
|
|
|
|
|
|
|
**Response body:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
{
|
|
|
|
id: string // UUID formatted as `00000000-0000-0000-0000-000000000000`
|
|
|
|
date: string // Date timestamp formatted as `2006-01-02T15:00:00Z`
|
|
|
|
pathParam: string
|
|
|
|
body: string
|
|
|
|
version: number
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2023-08-28 14:43:15 +01:00
|
|
|
<h3 id='documents-update-content'>Update Content (<a href='#list-of-endpoints'>go to full list</a>)</h3>
|
2023-08-24 17:28:00 +01:00
|
|
|
|
2023-09-19 17:12:34 +01:00
|
|
|
Update the content of the document with the specified path and ID if the last update is before the indicated date
|
2023-08-24 17:28:00 +01:00
|
|
|
|
2023-08-28 14:43:15 +01:00
|
|
|
`POST /api/v0/docs/{path}`
|
2023-08-24 17:28:00 +01:00
|
|
|
|
|
|
|
**Query Params:**
|
|
|
|
|
|
|
|
| name | type | elaboration |
|
|
|
|
|---|---|---|
|
|
|
|
| `id` | `string` | UUID formatted as `00000000-0000-0000-0000-000000000000` |
|
|
|
|
| `date` | `string` | Date timestamp formatted as `2006-01-02T15:00:00Z` |
|
|
|
|
|
|
|
|
**Path Params:**
|
|
|
|
|
|
|
|
| name | type | elaboration |
|
|
|
|
|---|---|---|
|
|
|
|
| `path` | `string` | |
|
|
|
|
|
|
|
|
**Request body:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
{
|
|
|
|
content: string
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
**Response body:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
{
|
|
|
|
id: string // UUID formatted as `00000000-0000-0000-0000-000000000000`
|
|
|
|
date: string // Date timestamp formatted as `2006-01-02T15:00:00Z`
|
|
|
|
pathParam: string
|
|
|
|
body: string
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|