build api docs

This commit is contained in:
nikk gitanes
2024-02-03 11:20:25 +03:00
parent efb17ee48d
commit cf3af55fb2
4 changed files with 27 additions and 21 deletions

View File

@@ -55,7 +55,7 @@
"parameters": [
{
"type": "string",
"description": "Test file size",
"description": "Test file size (in MB)",
"name": "size",
"in": "path",
"required": true
@@ -91,7 +91,7 @@
}
}
},
"/ffp": {
"/ffp/{hash}/{id}": {
"get": {
"description": "Gather informations using ffprobe.",
"produces": [
@@ -106,14 +106,14 @@
"type": "string",
"description": "Torrent hash",
"name": "hash",
"in": "query",
"in": "path",
"required": true
},
{
"type": "string",
"description": "File index in torrent",
"name": "id",
"in": "query",
"in": "path",
"required": true
}
],
@@ -210,7 +210,7 @@
}
}
},
"/play": {
"/play/{hash}/{id}": {
"get": {
"description": "Play given torrent referenced by hash.",
"produces": [
@@ -225,14 +225,14 @@
"type": "string",
"description": "Torrent hash",
"name": "hash",
"in": "query",
"in": "path",
"required": true
},
{
"type": "string",
"description": "File index in torrent",
"name": "id",
"in": "query",
"in": "path",
"required": true
},
{