Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
REST: Code Retreat Universidad Simón Bolívar
Search
Ivan Acosta-Rubio
January 06, 2012
Technology
1
1.6k
REST: Code Retreat Universidad Simón Bolívar
Ivan Acosta-Rubio
January 06, 2012
Tweet
Share
More Decks by Ivan Acosta-Rubio
See All by Ivan Acosta-Rubio
Intro to AVFoundation | #inspect2014
ivanacostarubio
0
190
RubyMotion @ MagmaConf
ivanacostarubio
1
800
CHINDOGU: LEVENSHTEIN Y METHOD MISSNG
ivanacostarubio
0
1.2k
A (re)-factoring Story
ivanacostarubio
1
1.7k
Replicating ActiveRecord objects to MongoDB
ivanacostarubio
2
2.4k
Other Decks in Technology
See All in Technology
LLMを搭載したプロダクトの品質保証の模索と学び
qa
0
1.1k
Snowflake Intelligence × Document AIで“使いにくいデータ”を“使えるデータ”に
kevinrobot34
1
120
Snowflake×dbtを用いたテレシーのデータ基盤のこれまでとこれから
sagara
0
120
自作JSエンジンに推しプロポーザルを実装したい!
sajikix
1
190
AWSを利用する上で知っておきたい名前解決のはなし(10分版)
nagisa53
10
3.2k
「その開発、認知負荷高すぎませんか?」Platform Engineeringで始める開発者体験カイゼン術
sansantech
PRO
2
560
💡Ruby 川辺で灯すPicoRubyからの光
bash0c7
0
120
Platform開発が先行する Platform Engineeringの違和感
kintotechdev
4
590
S3アクセス制御の設計ポイント
tommy0124
3
200
「何となくテストする」を卒業するためにプロダクトが動く仕組みを理解しよう
kawabeaver
0
430
開発者を支える Internal Developer Portal のイマとコレカラ / To-day and To-morrow of Internal Developer Portals: Supporting Developers
aoto
PRO
1
480
「Linux」という言葉が指すもの
sat
PRO
4
140
Featured
See All Featured
How GitHub (no longer) Works
holman
315
140k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.6k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
How to Ace a Technical Interview
jacobian
279
23k
jQuery: Nuts, Bolts and Bling
dougneiner
64
7.9k
Git: the NoSQL Database
bkeepers
PRO
431
66k
The Invisible Side of Design
smashingmag
301
51k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
The World Runs on Bad Software
bkeepers
PRO
70
11k
Reflections from 52 weeks, 52 projects
jeffersonlam
352
21k
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.5k
Transcript
@ivanacostarubio
[email protected]
Universidad Simón Bolívar Code Retreat Friday, January 6,
12
REST Friday, January 6, 12
Friday, January 6, 12
Friday, January 6, 12
Friday, January 6, 12
El mismo lugar, diferente arquitectura Friday, January 6, 12
REST Friday, January 6, 12
sistemas de hipermedia distribuidos Un tipo de arquitectura para Friday,
January 6, 12
¿Que es hipermedia? Friday, January 6, 12
Hipertexto + Video + Audio Friday, January 6, 12
Friday, January 6, 12
Rails and REST Friday, January 6, 12
# config/routes.rb resources :pagos HTTP Ruta Accion Uso get /pagos
index todos los pagos get /pagos/new new html - crear post /pagos create crea una nueva get /pagos/:id show muestra get /pagos/:id/edit edit html - editar put /pagos/:id update actualiza delete /pagos/:id destroy borra Friday, January 6, 12
Friday, January 6, 12
# config/routes.rb | Solo Algunas acciones resources :pagos, :only =>
[:index, :show] HTTP Ruta Accion Uso get /pagos index todos los pagos get /pagos/:id show muestra Friday, January 6, 12
# config/routes.rb | Solo Algunas acciones resources :pagos, :except =>
:destroy Friday, January 6, 12
Friday, January 6, 12
# config/routes.rb | Restringiendo parametros resources :pagos, :constraints => {:id
=> /[A-Z][A-Z][0-9]+/} constraints(:id => /[A-Z][A-Z][0-9]+/) do resources :pagos resources :facturas end Friday, January 6, 12
# config/routes.rb | ámbito scope ":usuario" do resources :pagos end
# app/controllers/pagos_controller.rb ... def index render :text => params[:usuario] end ... Friday, January 6, 12
rails generate scaffold crea un restful resource Friday, January 6,
12
REST Friday, January 6, 12
ES MUCHO MAS Friday, January 6, 12
Friday, January 6, 12
hardcore REST Friday, January 6, 12
separación de las preocupaciones 1 Friday, January 6, 12
Stateless sin estado 2 Friday, January 6, 12
Cache submemoria ultrarrápida 3 Friday, January 6, 12
Interfaz uniforme Identification de recursos Manipulacion de recursos Hipermedia como
el motor del estado de la aplicacion Mensajes descriptivos 4 Friday, January 6, 12
Sistema de Capaz construye encima 5 Friday, January 6, 12
Code-On-Demand scripts y applets 6 Friday, January 6, 12
Friday, January 6, 12
Roy Thomas Fielding Architectural Styles and the Design of Network-based
Software Architectures http://bit.ly/restcoderetreat Friday, January 6, 12
@ivanacostarubio
[email protected]
Bakedweb.net esta contratando desarrolladores! Friday, January 6, 12