mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-05 18:32:33 +01:00
Update README.md
This commit is contained in:
parent
f1d63918ef
commit
b9d40cbca0
16
README.md
16
README.md
@ -2,8 +2,7 @@
|
|||||||
cdn for discord clone
|
cdn for discord clone
|
||||||
|
|
||||||
## Endpoints:
|
## Endpoints:
|
||||||
### `/attachments/<filename>`
|
### POST `/attachments/<filename>`
|
||||||
#### POST
|
|
||||||
```
|
```
|
||||||
Content-Type: form-data
|
Content-Type: form-data
|
||||||
|
|
||||||
@ -18,8 +17,7 @@ attachment: File
|
|||||||
"filename": string // "lakdoiauej.png"
|
"filename": string // "lakdoiauej.png"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
### `/attachments/<id>/<filename>`
|
### GET `/attachments/<id>/<filename>`
|
||||||
#### GET
|
|
||||||
```
|
```
|
||||||
requests image from database with given <id> and <filename>
|
requests image from database with given <id> and <filename>
|
||||||
```
|
```
|
||||||
@ -28,8 +26,7 @@ requests image from database with given <id> and <filename>
|
|||||||
Content-Type: image/<imageType(png,img,gif)>
|
Content-Type: image/<imageType(png,img,gif)>
|
||||||
Image
|
Image
|
||||||
```
|
```
|
||||||
### `/attachments/<id>/<filename>`
|
### DELETE `/attachments/<id>/<filename>`
|
||||||
#### DELETE
|
|
||||||
```
|
```
|
||||||
deletes database entry
|
deletes database entry
|
||||||
```
|
```
|
||||||
@ -46,8 +43,8 @@ Content-Type: application/json
|
|||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
_(endpoints for crawler):_
|
_(endpoints for crawler):_
|
||||||
### `/external`
|
### POST `/external`
|
||||||
#### POST
|
|
||||||
```
|
```
|
||||||
requests crawling of `og:`metadata and the download of the `og:image` property
|
requests crawling of `og:`metadata and the download of the `og:image` property
|
||||||
--------
|
--------
|
||||||
@ -69,8 +66,7 @@ Content-Type: application/json
|
|||||||
"ogType": string // "website"
|
"ogType": string // "website"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
### `/external/<id>/<filename>`
|
### GET `/external/<id>/<filename>`
|
||||||
#### GET
|
|
||||||
- requests cached crawled image
|
- requests cached crawled image
|
||||||
```
|
```
|
||||||
url-params:
|
url-params:
|
||||||
|
Loading…
Reference in New Issue
Block a user