-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistration.model
108 lines (93 loc) · 1.82 KB
/
registration.model
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
e
name Registration
attributes (name: String, email: String, date: DateTime)
s
method POST
path /register/{name}/{email}
param path name: String
param path email: String
ci Registration
s
method GET
path /attendees
param query key: String
ci GetAttendees(apiKey = "mykey")
cc
name Registration
ci ValidateEmail
ci CheckDupRegistration
ci CreateRegistration
ci SaveRegistration
ci RegistrationSerializer
cc
name GetAttendees
params (apiKey: String)
ci CheckKey(correctKey = apiKey)<userKey -> key>
ci FetchRegistrations
ci RegistrationsSerializer
ac
name ValidateEmail
pre (email: String)
ac
name CheckDupRegistration
pre (name: String, email: String)
ac
name CreateRegistration
pre (name: String, email: String)
add (registration: Registration)
ac
name SaveRegistration
pre (registration: Registration)
ac
name RegistrationSerializer
pre (registration: Registration)
ac
name CheckKey
params (correctKey: String)
pre (userKey: String)
ac
name FetchRegistrations
add (registrations: SeqOf(Registration))
ac
name RegistrationsSerializer
pre (registrations: SeqOf(Registration))
// This is used by the automated test
e
name Test
attributes (name: String, email: OptionOf(Integer))
s
method POST
path /test/header
param header p1: Str
param header p2: OptionOf(Int)
ci Test
s
method GET
path /test/path/{p1}/path/{p2}
param path p1: Str
param path p2: OptionOf(Int)
ci Test
s
method GET
path /test/query
param query p1: Str
param query p2: SeqOf(Int)
param query p3: OptionOf(Int)
ci Test
s
method POST
path /test/body/str
param body p1: Str
ci Test
s
method POST
path /test/body/json/entity
param body p1: Test
ci Test
s
method POST
path /test/body/json/array
param body p1: SeqOf(Test)
ci Test
ac
name Test