Created
April 8, 2021 04:50
-
-
Save sinetoami/979dd3e85b8ae67942904d3dd74f81f4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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": "Genemitter API", | |
"description": "Optional multiline or single-line description in HTML.", | |
"version": "0.0.1" | |
}, | |
"servers": [ | |
{ | |
"url": "http://localhost:4500/docs", | |
"description": "Optional server description, e.g. Main (production) server" | |
}, | |
{ | |
"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": { | |
"/hello": { | |
"get": { | |
"summary": "Returns a \"Hello World!\" message.", | |
"description": "Optional extended description in CommonMark or HTML.", | |
"responses": { | |
"200": { | |
"description": "A JSON array of user names", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "object", | |
"properties": { | |
"status": { | |
"type": "number", | |
"example": 200 | |
}, | |
"message": { | |
"type": "string", | |
"example": "Hello World!" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment