Created
July 29, 2016 16:05
-
-
Save honzajavorek/12b536f8ba0c9977f5e2605aecb4607b to your computer and use it in GitHub Desktop.
Swagger x-example vendor extension property
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: 'Form Test' | |
version: '1.0' | |
paths: | |
'/test/{param}': | |
parameters: | |
- name: param | |
in: path | |
type: number | |
required: true | |
x-example: 42 | |
- name: order | |
in: query | |
type: string | |
x-example: asc | |
default: desc | |
get: | |
parameters: | |
- name: id | |
in: formData | |
type: boolean | |
required: true | |
x-example: false | |
- name: greeting | |
in: formData | |
type: string | |
enum: | |
- hi | |
- good morning | |
- hello | |
required: true | |
x-example: hello | |
default: good morning | |
- name: user-agent | |
in: header | |
type: string | |
required: true | |
x-example: Examplebot/4.2 (+http://www.example.com/bot.html) | |
responses: | |
200: | |
description: 'Success' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment