Skip to content

Instantly share code, notes, and snippets.

@sanjan
Created July 16, 2020 02:13
Show Gist options
  • Save sanjan/35dc5bc2c849776574ec3daeb66cb686 to your computer and use it in GitHub Desktop.
Save sanjan/35dc5bc2c849776574ec3daeb66cb686 to your computer and use it in GitHub Desktop.
openapi: 3.0.0
info:
version: 1.0.0
title: Hello API
description: An API to return hello in requested language
paths:
/api:
get:
tags:
- Hello
description: Returns hello in specified language
parameters:
- in: query
name: lang
required: true
description: language
schema:
type: string
example: es
responses:
'200':
description: hello in the requested language
content:
text/plain:
schema:
type: string
example: hola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment