mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 23:40:05 +00:00
use grpc and grpc gateway
This commit is contained in:
46
grpc-backend/proto/file_specs.json
Normal file
46
grpc-backend/proto/file_specs.json
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"paths": {
|
||||
"/api/v1/audio/{filepath}": {
|
||||
"get": {
|
||||
"summary": "Serve audio files (base64-encoded path)",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "filepath",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Base64-encoded file path"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Audio file content"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/image/{filepath}": {
|
||||
"get": {
|
||||
"summary": "Serve image files (base64-encoded path)",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "filepath",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Base64-encoded file path"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Image file content"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user