Skip to content

Instantly share code, notes, and snippets.

@shuttle1987
Created January 31, 2019 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shuttle1987/2c675fb22b90305e798667c5317314bd to your computer and use it in GitHub Desktop.
Save shuttle1987/2c675fb22b90305e798667c5317314bd to your computer and use it in GitHub Desktop.
OpenAPI YAML solution
openapi: 3.0.2
info:
title: Challenge 5
description: challenge 5 solution
version: 0.0.1
paths:
"/challenge_info":
get:
operationId: "api.endpoints.challenge_info"
responses:
'200':
description: "example solution"
content:
application/json:
schema:
type: object
properties:
challenge_number:
type: integer
example: 5
challenge_topic:
type: string
example: "OpenAPI"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment