duck-booking-tool/swagger/swagger.yaml

38 lines
778 B
YAML
Raw Normal View History

---
swagger: "2.0"
info:
version: "0.0.0"
title: "Rubber Duck Booking Tool API"
basePath: "/api/v1"
consumes:
2016-10-28 01:25:48 +00:00
- "application/json"
produces:
2016-10-28 01:25:48 +00:00
- "application/json"
paths:
2016-10-28 01:25:48 +00:00
/ducks:
get:
tags:
2016-10-28 01:25:48 +00:00
- "default_controller"
description: "Get the list of all ducks"
operationId: "controllers.default_controller.ducks_get"
parameters: []
responses:
200:
description: "An object which contains metadata and an array of ducks"
2016-10-27 19:28:03 +00:00
schema:
2016-10-28 01:25:48 +00:00
type: array
2016-10-27 19:28:03 +00:00
items:
2016-10-28 01:25:48 +00:00
$ref: '#/definitions/Duck'
security:
2016-10-28 01:25:48 +00:00
- api_key: []
securityDefinitions:
api_key:
type: "apiKey"
name: "token"
in: "header"
2016-10-27 19:28:03 +00:00
definitions:
Duck:
properties:
name:
type: "string"