update msx doc

This commit is contained in:
nikk gitanes
2024-02-03 22:50:19 +03:00
parent 963c7dab32
commit 97b7f527ff
4 changed files with 63 additions and 63 deletions

View File

@@ -148,32 +148,6 @@ const docTemplate = `{
}
}
},
"/msx": {
"get": {
"description": "Multi usage endpoint.",
"produces": [
"application/json"
],
"tags": [
"MSX"
],
"summary": "Multi usage endpoint",
"parameters": [
{
"type": "string",
"description": "Magnet/hash/link to torrent",
"name": "link",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Data returned according to query"
}
}
}
},
"/msx/imdb": {
"get": {
"description": "Get MSX IMDB informations.",
@@ -191,7 +165,7 @@ const docTemplate = `{
}
}
},
"/msx/imdb/:id": {
"/msx/imdb/{id}": {
"get": {
"description": "Get MSX IMDB informations.",
"produces": [
@@ -217,6 +191,32 @@ const docTemplate = `{
}
}
},
"/msx/{pth}": {
"get": {
"description": "Multi usage endpoint.",
"produces": [
"application/json"
],
"tags": [
"MSX"
],
"summary": "Multi usage endpoint",
"parameters": [
{
"type": "string",
"description": "Route MSX pages",
"name": "link",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Data returned according to path"
}
}
}
},
"/play/{hash}/{id}": {
"get": {
"description": "Play given torrent referenced by hash.",

View File

@@ -141,32 +141,6 @@
}
}
},
"/msx": {
"get": {
"description": "Multi usage endpoint.",
"produces": [
"application/json"
],
"tags": [
"MSX"
],
"summary": "Multi usage endpoint",
"parameters": [
{
"type": "string",
"description": "Magnet/hash/link to torrent",
"name": "link",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Data returned according to query"
}
}
}
},
"/msx/imdb": {
"get": {
"description": "Get MSX IMDB informations.",
@@ -184,7 +158,7 @@
}
}
},
"/msx/imdb/:id": {
"/msx/imdb/{id}": {
"get": {
"description": "Get MSX IMDB informations.",
"produces": [
@@ -210,6 +184,32 @@
}
}
},
"/msx/{pth}": {
"get": {
"description": "Multi usage endpoint.",
"produces": [
"application/json"
],
"tags": [
"MSX"
],
"summary": "Multi usage endpoint",
"parameters": [
{
"type": "string",
"description": "Route MSX pages",
"name": "link",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Data returned according to path"
}
}
}
},
"/play/{hash}/{id}": {
"get": {
"description": "Play given torrent referenced by hash.",

View File

@@ -393,12 +393,12 @@ paths:
summary: Get HTML of magnet links
tags:
- Pages
/msx:
/msx/{pth}:
get:
description: Multi usage endpoint.
parameters:
- description: Magnet/hash/link to torrent
in: query
- description: Route MSX pages
in: path
name: link
required: true
type: string
@@ -406,7 +406,7 @@ paths:
- application/json
responses:
"200":
description: Data returned according to query
description: Data returned according to path
summary: Multi usage endpoint
tags:
- MSX
@@ -421,7 +421,7 @@ paths:
summary: Get MSX IMDB informations
tags:
- MSX
/msx/imdb/:id:
/msx/imdb/{id}:
get:
description: Get MSX IMDB informations.
parameters: