Skip to content

Instantly share code, notes, and snippets.

@TijmenWierenga
Created December 7, 2020 19:10
Show Gist options
  • Save TijmenWierenga/53975a5e8dd3395437be3d6399ef5f46 to your computer and use it in GitHub Desktop.
Save TijmenWierenga/53975a5e8dd3395437be3d6399ef5f46 to your computer and use it in GitHub Desktop.
Demo OpenAPI document
openapi: 3.0.0
info:
title: Demo API
version: '1.0'
description: A sample API to describe the super powers of OpenAPI
contact:
name: Tijmen Wierenga
email: tijmen.wierenga@tweakers.net
servers:
- url: 'http://localhost'
description: local
paths:
/users:
get:
summary: List users
tags: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
type: object
properties:
username:
type: string
required:
- username
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment