-
Notifications
You must be signed in to change notification settings - Fork 1
/
openapi.yml
74 lines (74 loc) · 1.72 KB
/
openapi.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
openapi: "3.0.0"
info:
title: Users API for testing Speakeasy
version: 1.0.0
paths:
# We only need endpoints by method and path -- schema invalidation not yet implemented.
# Hardcode simple 200 reponse across all endpoints for now
/user:
post:
operationId: createUserv1
summary: Create user
responses:
"200":
description: |-
200 response
/user/{id}:
get:
operationId: getUserv1
summary: Get a user by ID
parameters:
- in: path
name: id
schema:
type: integer
required: true
description: Numeric ID of the user to get
responses:
"200":
description: |-
200 response
put:
operationId: updateUserv1
summary: Update a user by ID
parameters:
- in: path
name: id
schema:
type: integer
required: true
description: Numeric ID of the user to update
responses:
"200":
description: |-
200 response
delete:
operationId: deleteUserv1
summary: Delete a user by ID
parameters:
- in: path
name: id
schema:
type: integer
required: true
description: Numeric ID of the user to delete
responses:
"200":
description: |-
200 response
/users/search:
post:
operationId: searchUsersv1
summary: Search users
responses:
"200":
description: |-
200 response
/health:
get:
operationId: healthv1
summary: Healthcheck
responses:
"200":
description: |-
200 response