6. CLIENT SIDE: USER FRIENDLY
Hide non-valid transitions
Show primary transitions
"Read the specification"
7. SPECIFICATION
Ipeettesaemcieo tergt
mlmn h tt ahn n h ih.
Tepiayato frec saei te
h rmr cin o ah tt s h
"onad arw ecp frtesae
dwwr" ro, xet o h tt
"oe weetepiayato i
dn" hr h rmr cin s
t mv teie bc t te"okn"sae
o oe h tm ak o h wrig tt.
8. CLIENT SIDE VARIATIONS
fnto nxSae(tm {
ucin etttsie)
i (tmsae= 'ako'
f ie.tt = bclg)
rtr [wrig]
eun 'okn';
es i (tmsae= 'okn'
le f ie.tt = wrig)
rtr [bclg,'eiy]
eun 'ako' vrf';
..
.
}
fnto gtrmr(tt){
ucin ePiaysae
i (tmsae= 'ako'
f ie.tt = bclg)
rtr 'okn'
eun wrig;
..
.
}
9. CLIENT SIDE VARIATIONS
fnto nxSae(tm {
ucin etttsie)
dc ={
it
'ako'= [wrig]
bclg > 'okn',
'okn'= [bclg vrf',
wrig > 'ako, eiy]
..
.
}
rtr dc[tmsae;
eun itie.tt]
fnto gtrmr(tt){
ucin ePiaysae
i (tmsae= 'ako'
f ie.tt = bclg)
rtr 'okn'
eun wrig;
..
.
}
10. CLIENT SIDE VARIATIONS
fnto nxSae(tm {
ucin etttsie)
dc ={
it
'ako'= [wrig]
bclg > 'okn',
'okn'= [bclg vrf',
wrig > 'ako, eiy]
..
.
}
rtr dc[tmsae;
eun itie.tt]
fnto iPiaysae nxSae {
ucin srmr(tt, ettt)
rtr nxSae= nxSae(tt)ls(;
eun ettt = etttssae.at)
}
11. CLIENT SIDE VARIATIONS
fnto nxSae(tm {
ucin etttsie)
vrsaeahn =nwSaeahn(ofjo)
a ttMcie
e ttMciecn.sn;
}
rtr saeahn.eTastosie.tt)
eun ttMciegtrniin(tmsae;
fnto iPiaysae nxSae {
ucin srmr(tt, ettt)
rtr nxSae= nxSae(tt)ls(;
eun ettt = etttssae.at)
}
Many possibilities!
19. 1. EVALUATE PROCESSES
Cletos "or" bclg wrig vrf,dn
olcin: bad, ako, okn, eiy oe
Snl:dtis ei
ige eal, dt
Wie bigal t cag tesaeo a ie
rt: en be o hne h tt f n tm
acrigt terls
codn o h ue
27. H-FACTORS FOR OUR API
LO: Support for out-bound navigational links (HTTP GET)
LN: Support for non-idempotent updates (HTTP POST)
CL: Support for adding semantic meaning to link elements
using link relations
31. USE HTML FOR HYPERMEDIA APIS
Lots of hypermedia controls
Old, standardized, everybody knows HTML
Good tooling support
https://vimeo.com/20781278
http://codeartisan.blogspot.se/2012/07/using-html-as-media-type-for-your-api.html
http://amundsen.com/hypermedia/html/