Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spo-iitk/phd-pas-cdn
https://github.com/spo-iitk/phd-pas-cdn
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/spo-iitk/phd-pas-cdn
- Owner: spo-iitk
- Created: 2023-10-09T19:51:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-23T14:07:00.000Z (12 months ago)
- Last Synced: 2024-01-23T16:30:48.145Z (12 months ago)
- Language: Go
- Size: 210 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API Documentation
```sh
[POST] /cdn/upload - Uploads a file to the server
[DELETE] /cdn/delete - Deletes a file from the server
[GET] /cdn/view/ - Views a file from the server
[GET] /cdn/view/all - List of all files on the server
[POST] /cdn/zip - Zips a list of files, returns the filename
[GET] /cdn/zip/ - Zips a list of files and downloads it
[DELETE] /cdn/zip - Deletes a zip from the server
[DELETE] /cdn/zip/all - Deletes all zip files available on the server
```---
### Body
```go
type Delete*Request struct {
Filename string `json:"filename"`
}type ZipRequest struct {
Files []string `json:"files"`
OutFile string `json:"outfile"`
}```