Slide 39
Slide 39 text
Define the API methods
Annotate methods with
@abahgat, #appsterdam
@
e
n
d
p
o
i
n
t
s
.
m
e
t
h
o
d
(
R
e
q
u
e
s
t
M
e
s
s
a
g
e
C
l
a
s
s
,
R
e
s
p
o
n
s
e
M
e
s
s
a
g
e
C
l
a
s
s
,
n
a
m
e
=
'
f
o
o
.
b
a
r
'
,
p
a
t
h
=
'
/
b
a
r
'
,
h
t
t
p
_
m
e
t
h
o
d
=
'
G
E
T
'
, .
.
.
)
d
e
f b
a
r
(
s
e
l
f
, r
e
q
u
e
s
t
)
:
.
.
.
P
Y
T
H
O
N
R
e
q
u
e
s
t
M
e
s
s
a
g
e
C
l
a
s
s and R
e
s
p
o
n
s
e
M
e
s
s
a
g
e
C
l
a
s
s are ProtoRPC
definitions of the request and response classes,
p
a
t
h is the URL path of the endpoint,
h
t
t
p
_
m
e
t
h
o
d allows to map different functions to different HTTP methods
·
·
·
39/46