Created
April 3, 2023 10:13
-
-
Save martin-mfg/7f427836adb64bea947cea0cc3629aad to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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