-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathopenapi.yaml
44 lines (43 loc) · 927 Bytes
/
openapi.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
openapi: '3.0.3'
info:
version: "1.0.0"
title: Sample API
servers:
- url: http://localhost:8080/v2
paths:
/people:
get:
tags:
- People
description: |
Gets `Person` objects.
Optional query param of **size** determines
parameters:
- name: size
in: query
description: Size of array
required: true
schema:
type: integer
format: int32
responses:
# Response code
200:
description: Successful response
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/Person'
components:
schemas:
Person:
type: object
properties:
firstname:
type: string
lastname:
type: string
single:
type: boolean