Skip to content

Instantly share code, notes, and snippets.

@xbklairith
Created August 9, 2016 15:59
Show Gist options
  • Save xbklairith/fc77ef9d81e3359b2750c2903f0d736b to your computer and use it in GitHub Desktop.
Save xbklairith/fc77ef9d81e3359b2750c2903f0d736b to your computer and use it in GitHub Desktop.
/pokemon/list:
get:
responses:
200:
description: Return all as array
schema:
type: array
items:
$ref: '#/definitions/Monster'
/pokemon/info/{monsterName}:
get:
parameters:
- name: monsterName
in: path
required: true
type: string
responses:
200:
description: Return a monster from name
schema:
$ref: '#/definitions/Monster'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment