Skip to content

Instantly share code, notes, and snippets.

@blugavere
Last active April 5, 2017 18:57
Show Gist options
  • Save blugavere/3aaaec3caf75a3ddeb01c0c4d58ae0e1 to your computer and use it in GitHub Desktop.
Save blugavere/3aaaec3caf75a3ddeb01c0c4d58ae0e1 to your computer and use it in GitHub Desktop.
# this is an example a YAML Swagger Spec
swagger: '2.0'
info:
title: Uber API
description: Move your app forward with the Uber API
version: "1.0.0"
basePath: /v1
produces:
- application/json
paths:
/products:
get:
summary: Product Types
description: |
Blah blah blah
parameters:
- name: id
in: query
description: Product Id.
required: false
type: number
format: double
tags:
- Products
responses:
200:
description: An array of products
schema:
type: array
items:
$ref: '#/definitions/Product'
definitions:
Product:
type: object
properties:
product_id:
type: string
description: Unique identifier.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment