Skip to content

Instantly share code, notes, and snippets.

@who
Created May 22, 2015 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save who/c0034e93669d85667cdb to your computer and use it in GitHub Desktop.
Save who/c0034e93669d85667cdb to your computer and use it in GitHub Desktop.
swagger: "2.0"
info:
version: 0.0.0
title: An API
paths:
"/testing/{testString}":
post:
parameters:
- name: testString
in: path
required: true
type: string
- in: body
name: body
description: Thing Properties
required: true
schema:
type: array
items:
$ref: "#/definitions/ThingProperty"
responses:
"200":
description: successful operation
schema:
type: object
definitions:
ThingProperty:
required:
- isActive
- name
- value
properties:
name:
type: string
minLength: 1
maxLength: 255
value:
type: string
isActive:
type: boolean
default: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment