Last active
August 23, 2018 16:45
-
-
Save msabramo/fe231069a36b22a2351cc42eae0f9247 to your computer and use it in GitHub Desktop.
Toy swagger file
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
openapi: 3.0.0 | |
info: | |
title: Sample API | |
description: Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML. | |
version: 0.1.9 | |
servers: | |
- url: http://api.example.com/v1 | |
description: Optional server description, e.g. Main (production) server | |
- url: http://staging-api.example.com | |
description: Optional server description, e.g. Internal staging server for testing | |
paths: | |
/stuff: | |
get: | |
summary: Greeting for fun | |
description: I'm just playing with Swagger | |
responses: | |
'200': # status code | |
description: A JSON array of user names | |
content: | |
application/json: | |
schema: | |
type: array | |
items: | |
type: string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment