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

@@ -8,18 +8,7 @@ paths:
- $ref: "#/components/parameters/token"
responses:
200:
content:
applicaiton/json:
schema:
type: array
items:
type: object
properties:
Name: string
ID: string
example:
Name: John Smith
ID: abc-123
$ref: "#/components/schemas/responseShortList"
post:
description: "Create a new entity"
@@ -42,3 +31,5 @@ components:
$ref: "../swagger.yaml#/components/schemas/requestOne"
responseOne:
$ref: "../swagger.yaml#/components/schemas/responseOne"
responseShortList:
$ref: "../swagger.yaml#/components/schemas/responseShortList"