Skip to content

Instantly share code, notes, and snippets.

@greatvovan
Created October 23, 2020 23:30
Show Gist options
  • Save greatvovan/0ce0b4f72b2319b1a8e1b753ac164b0d to your computer and use it in GitHub Desktop.
Save greatvovan/0ce0b4f72b2319b1a8e1b753ac164b0d to your computer and use it in GitHub Desktop.
openapi: 3.0.0
info:
version: 1.0.0
title: Title
description: Description.
servers:
- url: https://my.domain.com
description: Public URL
paths:
/query:
get:
summary: Get an item
responses:
'200':
description: 'OK'
$ref: '#/components/responses/Response'
components:
responses:
Response:
description: Result of processing of the Input by requested NLP services.
content:
application/json:
schema:
$ref: '#/components/schemas/Response'
schemas:
Color:
type: string
description: Color
enum: [red, green, blue]
Response:
type: object
description: A JSON representation of an item.
properties:
topColor:
$ref: '#/components/schemas/Color'
bottomColor:
type: string
description: Color
enum: [red, green, blue]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment