-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi.raml
89 lines (89 loc) · 1.72 KB
/
api.raml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#%RAML 1.0
types:
To-Do:
properties:
id:
example: 1
type: number
format: int
title:
example: Get a Max the Mule plushie at Dreamforce
type: string
checked:
default: false
example: false
type: boolean
dueDate?:
example: 2023-08-30
type: date-only
title: My To-Do API
mediaType:
- application/json
/todos:
get:
displayName: Get all To-Dos
queryParameters:
titleContains?:
example: dreamforce
type: string
isChecked?:
default: false
example: false
type: boolean
fromDate?:
example: 2023-08-30
type: date-only
toDate?:
example: 2023-08-30
type: date-only
responses:
"200":
body:
items:
type: To-Do
post:
displayName: Create a To-Do
body:
type: To-Do
example:
strict: true
value:
id: 2
title: Finish the MuleSoft mini-hack at Dreamforce
checked: false
dueDate: 2023-09-14
responses:
"201":
body:
type: To-Do
example:
strict: true
value:
id: 2
title: Finish the MuleSoft mini-hack at Dreamforce
checked: false
dueDate: 2023-09-14
/todos/{id}:
get:
displayName: Got a To-Do
responses:
"200":
body:
type: To-Do
delete:
displayName: Delete a To-Do
responses:
"204": {}
uriParameters:
id:
example: 1
type: number
format: int
post:
body:
type: To-Do
responses:
"200":
body:
type: To-Do
version: 2.0.0