Created
May 17, 2016 08:09
-
-
Save Voronenko/c0d5cb9236b95c874fe05b8bbf5b9447 to your computer and use it in GitHub Desktop.
Basic swagger yml template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
title: title | |
description: description | |
version: 2.0.0 | |
host: '--' | |
schemes: | |
- https | |
basePath: /v2 | |
produces: | |
- application/json | |
paths: | |
"/": | |
get: | |
description: description | |
parameters: | |
- name: cachebeater | |
in: query | |
description: Cachebeater string. | |
required: false | |
type: string | |
responses: | |
default: | |
description: Invalid request. | |
schema: | |
"$ref": "#/definitions/Error" | |
definitions: | |
Error: | |
type: object | |
description: A representation of a error | |
properties: | |
type: | |
type: string | |
description: The error type | |
value: | |
type: string | |
description: Explanation of the error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment