Fix swagger for namespace on files path

master
breel 2020-07-25 21:23:57 -06:00
parent 480456fbdf
commit 93dff873e2
2 changed files with 12 additions and 5 deletions

View File

@ -5,7 +5,7 @@ paths:
summary: "Fetch a file"
parameters:
- $ref: "#/components/parameters/path"
- $ref: "#/components/parameters/namespace"
- $ref: "#/components/parameters/namespacePath"
responses:
200:
content:
@ -19,7 +19,7 @@ paths:
summary: "Provide or direct link to a file"
parameters:
- $ref: "#/components/parameters/path"
- $ref: "#/components/parameters/namespace"
- $ref: "#/components/parameters/namespacePath"
- $ref: "#/components/parameters/direct"
requestBody:
description: "If ?direct=true, then a direct link to the file, else a multi-part form"
@ -41,8 +41,8 @@ components:
path:
$ref: "./swagger.yaml#/components/parameters/path"
namespace:
$ref: "./swagger.yaml#/components/parameters/namespace"
namespacePath:
$ref: "./swagger.yaml#/components/parameters/namespacePath"
direct:
name: direct

View File

@ -21,7 +21,7 @@ paths:
$ref: "./swagger-register.yaml#/paths"
/port:
$ref: "./swagger-port.yaml#/paths"
/__files__/{path}:
/__files__/{namespacePath}/{path}:
$ref: "./swagger-files.yaml#/paths"
components:
@ -41,6 +41,13 @@ components:
schema:
type: string
namespacePath:
name: namespacePath
in: path
required: true
schema:
type: string
schemas:
ok:
content: