-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
59 lines (59 loc) · 1.15 KB
/
swagger.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
57
58
59
swagger: '2.0'
info:
version: 1.0.0
title: Swagger Petstore
contact:
name: Swagger API Team
url: 'http://swagger.io'
license:
name: Creative Commons 4.0 Intesrddffssnffffwwffffatffffffssdddddddonssal
url: 'http://creativecommons.org/licenses/by/4.0/'
host: petstore.swagger.io
basePath: /api
schemes:
- http
paths:
/pets:
get:
tags:
- Pet Operations
summary: finds pets in the system
responses:
'200':
description: pet response
schema:
type: array
items:
$ref: '#/definitions/Pet'
headers:
x-expires:
type: string
default:
description: unexpected error
schema:
$ref: '#/definitions/Error'
definitions:
Pet:
type: object
required:
- id
- name
properties:
id:
type: integer
format: int64
name:
type: string
tag:
type: string
Error:
type: object
required:
- code
- message
properties:
code:
type: integer
format: int32
message:
type: string