Skip to content

Instantly share code, notes, and snippets.

@markflorkowski
Last active December 14, 2021 23:29
Show Gist options
  • Save markflorkowski/9037234562bfaf4e0a67ed5bf465051d to your computer and use it in GitHub Desktop.
Save markflorkowski/9037234562bfaf4e0a67ed5bf465051d to your computer and use it in GitHub Desktop.
Testing OpenAPI spec
---
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