-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathopenapi.public.yaml
55 lines (55 loc) · 1.12 KB
/
openapi.public.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
openapi: 3.0.3
info:
title: Users API
version: 0.1.0
servers:
- url: http://localhost:8080
paths:
/users:
get:
summary: Returns a list of users.
tags:
- Users
responses:
200:
description: An array of users
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/User'
/users/{userId}:
get:
summary: Returns a list of users.
tags:
- Users
parameters:
- name: userId
in: path
schema:
type: string
format: uuid
required: true
responses:
200:
description: A user
content:
application/json:
schema:
$ref: '#/components/schemas/User'
x-sample-key: x-sample-key-value
components:
schemas:
User:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
example: John Doe
required:
- id
- name