-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Introducing x-example attribute for Swagger non-body parameters
- Loading branch information
1 parent
2904a20
commit 2955a52
Showing
6 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FORMAT: 1A | ||
|
||
# Beehive API | ||
|
||
## Honey [/honey{?beekeeper}] | ||
|
||
+ Parameters | ||
+ beekeeper: Honza (enum[string]) | ||
|
||
Description... | ||
|
||
+ Members | ||
+ Adam | ||
+ Honza | ||
+ Dredd | ||
+ Default: `Dredd` | ||
|
||
### Remove [DELETE] | ||
|
||
+ Request (application/json) | ||
|
||
+ Response 200 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
swagger: "2.0" | ||
info: | ||
version: "1.0" | ||
title: Petstore | ||
description: A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification | ||
host: petstore.swagger.io | ||
basePath: / | ||
schemes: | ||
- http | ||
consumes: | ||
- application/json | ||
produces: | ||
- application/json | ||
paths: | ||
/honey: | ||
get: | ||
parameters: | ||
- name: beekeeper | ||
in: query | ||
type: string | ||
enum: | ||
- Adam | ||
- Honza | ||
- Dredd | ||
x-example: Honza | ||
default: Dredd | ||
responses: | ||
200: | ||
description: pet response | ||
schema: | ||
$ref: '#/definitions/Pet' | ||
definitions: | ||
Pet: | ||
required: | ||
- id | ||
- name | ||
properties: | ||
id: | ||
type: integer | ||
format: int64 | ||
name: | ||
type: string | ||
tag: | ||
type: string |
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