Skip to content

Instantly share code, notes, and snippets.

@amakhrov
Last active January 24, 2020 19:22
Show Gist options
  • Save amakhrov/1185d166a5c9ea6fc72de709a7be3795 to your computer and use it in GitHub Desktop.
Save amakhrov/1185d166a5c9ea6fc72de709a7be3795 to your computer and use it in GitHub Desktop.
swagger: '2.0'
info:
version: '1.0'
title: Example API
schemes:
- http
paths:
/endpoint:
get:
responses:
400:
description: Error response
schema:
$ref: '#/definitions/Error'
definitions:
Error:
type: object
properties:
code:
description: Error code
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment