Last active
December 14, 2021 23:29
-
-
Save markflorkowski/9037234562bfaf4e0a67ed5bf465051d to your computer and use it in GitHub Desktop.
Testing OpenAPI spec
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: | |
version: "1.0.0" | |
title: "Minimal OpenAPI Spec" | |
description: "A sample API for testing" | |
termsOfService: "http://swagger.io/terms/" | |
contact: | |
name: "N/A" | |
license: | |
name: "MIT" | |
host: "httpstat.us" | |
basePath: "/" | |
schemes: | |
- "http" | |
consumes: | |
- "application/json" | |
produces: | |
- "application/json" | |
paths: | |
/200: | |
get: | |
description: "Returns a 200" | |
produces: | |
- "application/json" | |
responses: | |
"200": | |
description: "a 200 status" | |
schema: | |
type: "string" | |
/401: | |
get: | |
description: "Returns a 401" | |
produces: | |
- "application/json" | |
responses: | |
"401": | |
description: "a 401 status" | |
schema: | |
type: "string" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment