Skip to content

Instantly share code, notes, and snippets.

@Voronenko
Created May 17, 2016 08:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Voronenko/c0d5cb9236b95c874fe05b8bbf5b9447 to your computer and use it in GitHub Desktop.
Save Voronenko/c0d5cb9236b95c874fe05b8bbf5b9447 to your computer and use it in GitHub Desktop.
Basic swagger yml template
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