Swagger for dump endpoin

This commit is contained in:
breel
2020-08-27 13:59:07 -06:00
parent 702720326b
commit e1202cec67
4 changed files with 62 additions and 13 deletions

View File

@@ -0,0 +1,31 @@
paths:
get:
tags:
- dump
parameters:
- $ref: "#/components/parameters/token"
summary: "Dump out a namespace"
responses:
200:
$ref: "#/components/schemas/fullList"
post:
tags:
- dump
parameters:
- $ref: "#/components/parameters/token"
summary: "Load up a namespace"
requestBody:
$ref: "#/components/schemas/fullList"
responses:
200:
$ref: "#/components/schemas/responseShortList"
components:
parameters:
token:
$ref: "./swagger.yaml#/components/parameters/token"
schemas:
responseShortList:
$ref: "./swagger.yaml#/components/schemas/responseShortList"
fullList:
$ref: "./swagger.yaml#/components/schemas/fullList"