use grpc and grpc gateway

This commit is contained in:
2025-05-21 11:17:07 +02:00
parent 396ccc28f4
commit 4bd0ddb6b8
13 changed files with 850 additions and 2158 deletions

View 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"
}
}
}
}
}
}