Skip to content

Instantly share code, notes, and snippets.

@theomega
Last active September 12, 2016 15:13
Show Gist options
  • Save theomega/b7e9f34f0dad11b92c1cb9de9fc95d32 to your computer and use it in GitHub Desktop.
Save theomega/b7e9f34f0dad11b92c1cb9de9fc95d32 to your computer and use it in GitHub Desktop.
swagger: '2.0'
info:
version: 2.0.0
title: Swagger API
schemes:
- http
host: 'localhost:8080'
paths:
'/hello':
get:
description: Magic Endpoint
parameters:
- $ref: '#/parameters/queryAggregates'
responses:
'200':
description: Success case
schema:
type: string
parameters:
queryAggregates:
name: aggregates
in: query
description: Magic Description
required: true
type: array
collectionFormat: csv
items:
type: string
enum:
- avg
- min
- max
- count
- numCount
- boolCount
- stringCount
- stringValues
- boolValues
x-example: count
x-example: avg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment