Files
wapifuzz/tests/documentation.yaml
2019-11-21 16:56:50 +01:00

63 lines
1.3 KiB
YAML

openapi: "3.0.0"
info:
version: 1.0.0
title: Swagger Petstore
license:
name: MIT
servers:
- url: http://petstore.swagger.io
paths:
/pets?attributeName={attributeValue}:
get:
summary: List all pets
operationId: listPets
tags:
- pets
parameters:
- name: attributeValue
in: query
description: How many items to return at one time (max 100)
required: true
schema:
type: string
responses:
'200':
description: A paged array of pets
headers:
x-next:
description: A link to the next page of responses
schema:
type: string
content:
application/json:
schema:
$ref: "#/components/schemas/Pets"
components:
schemas:
Pet:
required:
- id
- name
properties:
id:
type: integer
format: int64
name:
type: string
tag:
type: string
Pets:
type: array
items:
$ref: "#/components/schemas/Pet"
Error:
required:
- code
- message
properties:
code:
type: integer
format: int32
message:
type: string