-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
75 lines (74 loc) · 1.94 KB
/
Copy pathopenapi.yaml
File metadata and controls
75 lines (74 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
openapi: 3.0.3
info:
title: Stowage File Server API
version: 1.0.0
description: |
A high-performance file server for audio, video, images, RSS, and JSON files, built with Rust and Actix-web.
## Features
- RESTful API for file uploads
- Unique, non-sequential file IDs
- Optimized for audio, video, images, RSS/XML, JSON
- File type validation (content-based)
- Configurable file size limits
- CORS support
- Docker-ready
servers:
- url: http://localhost:8080
paths:
/upload:
post:
summary: Upload a file
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
responses:
'201':
description: File uploaded successfully
content:
application/json:
schema:
type: object
properties:
file_id:
type: string
download_url:
type: string
'400':
description: Invalid file type or upload error
/files/{file_id}:
get:
summary: Download a file
parameters:
- in: path
name: file_id
required: true
schema:
type: string
responses:
'200':
description: File download
content:
application/octet-stream:
schema:
type: string
format: binary
'404':
description: File not found
/about:
get:
summary: About the application
responses:
'200':
description: Application description
content:
text/plain:
schema:
type: string
components: {}