generated from CMU-17-356/s23-final-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.yml
58 lines (57 loc) · 1.09 KB
/
api.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
openapi: '3.0.2'
info:
title: StyleLabz API
version: '1.0'
servers:
- url: https://api.server.test/v1
paths:
/users:
post:
responses:
'201':
description: created
/users/{userId}:
parameters:
- in: path
name: userId
schema:
type: string
required: true
get:
responses:
200:
description: ok
404:
description: not found
/survey/{userId}:
parameters:
- in: path
name: userId
schema:
type: string
required: true
post:
requestBody:
required: true
content:
application/json:
schema:
'#/components/schemas/survey'
responses:
'201':
description: created
'400':
description: bad request
/preferences/{userId}:
get:
responses:
200:
description: ok
404:
description: not found
post:
responses:
204:
description: no content
404:
description: not found