Fix swagger for namespace on files path
This commit is contained in:
@@ -5,7 +5,7 @@ paths:
|
|||||||
summary: "Fetch a file"
|
summary: "Fetch a file"
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "#/components/parameters/path"
|
- $ref: "#/components/parameters/path"
|
||||||
- $ref: "#/components/parameters/namespace"
|
- $ref: "#/components/parameters/namespacePath"
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
content:
|
content:
|
||||||
@@ -19,7 +19,7 @@ paths:
|
|||||||
summary: "Provide or direct link to a file"
|
summary: "Provide or direct link to a file"
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "#/components/parameters/path"
|
- $ref: "#/components/parameters/path"
|
||||||
- $ref: "#/components/parameters/namespace"
|
- $ref: "#/components/parameters/namespacePath"
|
||||||
- $ref: "#/components/parameters/direct"
|
- $ref: "#/components/parameters/direct"
|
||||||
requestBody:
|
requestBody:
|
||||||
description: "If ?direct=true, then a direct link to the file, else a multi-part form"
|
description: "If ?direct=true, then a direct link to the file, else a multi-part form"
|
||||||
@@ -41,8 +41,8 @@ components:
|
|||||||
path:
|
path:
|
||||||
$ref: "./swagger.yaml#/components/parameters/path"
|
$ref: "./swagger.yaml#/components/parameters/path"
|
||||||
|
|
||||||
namespace:
|
namespacePath:
|
||||||
$ref: "./swagger.yaml#/components/parameters/namespace"
|
$ref: "./swagger.yaml#/components/parameters/namespacePath"
|
||||||
|
|
||||||
direct:
|
direct:
|
||||||
name: direct
|
name: direct
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ paths:
|
|||||||
$ref: "./swagger-register.yaml#/paths"
|
$ref: "./swagger-register.yaml#/paths"
|
||||||
/port:
|
/port:
|
||||||
$ref: "./swagger-port.yaml#/paths"
|
$ref: "./swagger-port.yaml#/paths"
|
||||||
/__files__/{path}:
|
/__files__/{namespacePath}/{path}:
|
||||||
$ref: "./swagger-files.yaml#/paths"
|
$ref: "./swagger-files.yaml#/paths"
|
||||||
|
|
||||||
components:
|
components:
|
||||||
@@ -41,6 +41,13 @@ components:
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
namespacePath:
|
||||||
|
name: namespacePath
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
|
||||||
schemas:
|
schemas:
|
||||||
ok:
|
ok:
|
||||||
content:
|
content:
|
||||||
|
|||||||
Reference in New Issue
Block a user