Add Duck definition to Swagger file
This commit is contained in:
parent
a6a74fa56c
commit
e762b30278
@ -19,6 +19,10 @@ paths:
|
|||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "An object which contains metadata and an array of ducks"
|
description: "An object which contains metadata and an array of ducks"
|
||||||
|
schema:
|
||||||
|
type: "array"
|
||||||
|
items:
|
||||||
|
$ref: "#/definitions/Duck"
|
||||||
security:
|
security:
|
||||||
- api_key: []
|
- api_key: []
|
||||||
securityDefinitions:
|
securityDefinitions:
|
||||||
@ -26,4 +30,8 @@ securityDefinitions:
|
|||||||
type: "apiKey"
|
type: "apiKey"
|
||||||
name: "token"
|
name: "token"
|
||||||
in: "header"
|
in: "header"
|
||||||
definitions: {}
|
definitions:
|
||||||
|
Duck:
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: "string"
|
||||||
|
Loading…
Reference in New Issue
Block a user