-
Notifications
You must be signed in to change notification settings - Fork 0
/
PetStoreLimited.yaml
56 lines (56 loc) · 1.29 KB
/
PetStoreLimited.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
openapi: "3.0.0"
info:
version: '1'
title: Petstore, Limited
description: asdf
contact:
name: Ed Vinyard <ed@stoplight.io>
license:
name: MIT
servers:
- url: http://api.example.com/v1
tags:
- name: pets
paths:
/pets/{petId}:
get:
summary: Info for a specific pet
description: Info for a specific pet
operationId: showPetById
tags:
- pets
parameters:
- name: petId
in: path
required: true
description: The id of the pet to retrieve
schema:
type: string
responses:
'200':
description: Expected response to a valid request
content:
application/json:
schema:
type: object
required:
- id
- name
properties:
id:
type: integer
name:
type: string
examples:
cat:
value:
id: 1
name: Fluffy
dog:
value:
id: 2
name: Spot
rock:
value:
id: 2
name: Pebbles