Document register public

master
breel 2020-07-25 22:23:01 -06:00
parent 0e16340fd2
commit 4492307499
1 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,7 @@ paths:
summary: "Register a new namespace"
parameters:
- $ref: "#/components/parameters/namespace"
- $ref: "#/components/parameters/public"
requestBody:
description: "A url-form-encoded password for the namespace"
content:
@ -22,6 +23,14 @@ components:
parameters:
namespace:
$ref: "./swagger.yaml#/components/parameters/namespace"
public:
name: public
in: query
description: "if not empty, then namespace is accessible without auth"
schema:
type: string
schemas:
ok:
$ref: "./swagger.yaml#/components/schemas/ok"