Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save martin-mfg/7f427836adb64bea947cea0cc3629aad to your computer and use it in GitHub Desktop.
Save martin-mfg/7f427836adb64bea947cea0cc3629aad to your computer and use it in GitHub Desktop.
swagger: '2.0'
info:
description: "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\"
version: 1.0.0
title: OpenAPI Petstore
paths:
'/':
get:
description: dummy
operationId: getSingle
produces:
- application/xml
responses:
'200':
description: successful operation
schema:
$ref: '#/definitions/book'
'/myArray':
get:
description: dummy
operationId: getArray
produces:
- application/xml
responses:
'200':
description: successful operation
schema:
$ref: '#/definitions/bookArray'
definitions:
book:
type: object
properties:
id:
type: integer
title:
type: string
author:
type: string
xml:
name: xmlBook
bookArray:
type: object
properties:
book:
$ref: '#/definitions/book'
references:
type: array
items:
type: string
xml:
wrapped: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment