I'm using the online Swagger Editor (http://editor.swagger.io) and the heroku-pets.yaml
example. I changed the GET /
operation to introduce a custom header token
:
paths:
/:
get:
parameters:
- name: limit
in: query
description: number of pets to return
type: integer
default: 11
minimum: 11
maximum: 10000
- name: token
in: header
description: token
type: string
But when I do "Try it out", there's an error "ERROR Server not found or an error occurred", and the "Headers" say undefined
.
Any idea what might be wrong and how to fix it?