/
api.yaml
46 lines (41 loc) · 897 Bytes
/
api.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
swagger: 2.0
info:
title: Pet API
description: Pet API description
contact:
name: Joe Developer
email: joe@developers.kom
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: @version@
tags:
- name: purpose
description: scaffolding
host: server:8080
basePath: /api-path
paths:
/pets:
get:
summary: All pets
description: Returns all pets from the system.
tags:
- pet
- query
parameters:
- name: search
in: query
description: A search query for pets.
type: string
produces:
- application/json
responses:
200:
description: A list of pets.
schema:
type: array
$ref: "#/definitions/Pet"
500:
description: Pets are dead.
tsModels:
- ../../model/ts/pet.ts