Update swagger for json login, api prefix, direct upload, markdown read

This commit is contained in:
breel
2020-08-28 15:59:44 -06:00
parent cf3a289a54
commit 3a3ee3912d
6 changed files with 59 additions and 24 deletions

View File

@@ -5,16 +5,10 @@ paths:
- users
requestBody:
content:
application/json:
$ref: "#/components/schemas/requestRegister"
application/x-www-form-urlencoded:
schema:
type: object
properties:
DnDex-User:
type: string
example: "namespace"
DnDex-Auth:
type: string
example: "password"
$ref: "#/components/schemas/requestRegister"
responses:
200:
$ref: "#/components/schemas/responseOK"
@@ -23,3 +17,13 @@ components:
schemas:
responseOK:
$ref: "../swagger.yaml#/components/schemas/responseOK"
requestRegister:
schema:
type: object
properties:
DnDex-User:
type: string
example: "namespace"
DnDex-Auth:
type: string
example: "password"