Skip to content

Instantly share code, notes, and snippets.

@el2ro
Created December 14, 2018 10:25
Show Gist options
  • Save el2ro/7d6a3007389429b906b4a49878621dc7 to your computer and use it in GitHub Desktop.
Save el2ro/7d6a3007389429b906b4a49878621dc7 to your computer and use it in GitHub Desktop.
openapi: 3.0.2
servers:
- url: 'https://localhost/api'
description: Test
info:
description: 'Test'
version: 0.0.1
title: Testing API
tags:
- name: test
externalDocs:
url: 'http://localhost/docs'
paths:
'/tests':
get:
tags:
- project
description: Get tests
operationId: getTests
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/Test'
externalDocs:
url: 'http://localhost/docs'
externalDocs:
description: See AsyncAPI example
url: 'https://dronecloud.tm.intel.com/docs/'
components:
schemas:
Test:
title: test
type: object
description: Test
properties:
id:
type: string
format: uuid
name:
type: string
description:
type: string
settings:
type: object
description: Nested object inside an object
properties:
startValue:
type: object
endValue:
type: object
someValue:
type: object
links: {}
callbacks: {}
security: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment