Last active
April 5, 2017 18:57
-
-
Save blugavere/3aaaec3caf75a3ddeb01c0c4d58ae0e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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