3. RESOURCE
DELETE /list/12345 HTTP status 200 OK
GET /user/redsend/avatar HTTP status200 OK
Content Type image/jpeg
GET /user/redsend 200 OK
HTTP status
Content Type application/json
Body {name:”enrico”}
POST /card/12345/buy HTTP error 402 Payment Required
@mrredsend enrico@mangatar.net
4. VANTAGGI
1
Scalabilità
Supportare grandi carichi sfruttando le caratteristiche di HTTP (Cache e Proxy)
2
Portabilità
Rendere semplice l’accesso all’applicazione da nuove tipologie di client
3
Semplicità
Organizzare applicazioni complesse in semplici risorse
@mrredsend enrico@mangatar.net
5. ARCHITETTURA
POST /card/12345/buy
Client Server
? framework
? framework
JS PHP
HTTP status 200 OK
@mrredsend enrico@mangatar.net
6. ARCHITETTURA
POST /card/12345/buy
Client Server
JavascriptMVC
framework
? framework
JS PHP
HTTP status 200 OK
@mrredsend enrico@mangatar.net
7. JavascriptMVC
“ A collection of the best practices and tools for buil-
ding JavaScript applications. Built on top of jQuery ”
http://javascriptmvc.com/
@mrredsend enrico@mangatar.net
9. ARCHITETTURA
POST /card/12345/buy
Client Server
JavascriptMVC TONIC
framework framework
JS PHP
HTTP status 200 OK
@mrredsend enrico@mangatar.net
10. TONIC
“...where resources are king and the library gets out of the
way and leaves the developer to get on with it.”
http://peej.github.com/tonic/
@mrredsend enrico@mangatar.net