diff --git a/public/swagger/swagger-files.yaml b/public/swagger/swagger-files.yaml index 855e830..cae1d89 100644 --- a/public/swagger/swagger-files.yaml +++ b/public/swagger/swagger-files.yaml @@ -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 diff --git a/public/swagger/swagger.yaml b/public/swagger/swagger.yaml index aea9480..56b1e46 100644 --- a/public/swagger/swagger.yaml +++ b/public/swagger/swagger.yaml @@ -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: