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
Basic REST Concepts
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Roberto Guerra
August 09, 2013
Technology
70
2
Share
Basic REST Concepts
Roberto Guerra
August 09, 2013
More Decks by Roberto Guerra
See All by Roberto Guerra
SQL With Groovy
uris77
2
67
Web Services Overview
uris77
0
48
Grails Overview
uris77
1
63
Other Decks in Technology
See All in Technology
データモデリング通り #5オンライン勉強会: AIに『ビジネスの文脈』を教え込むデータモデリング
datayokocho
0
180
需要創出(Chatwork)×供給(BPaaS) フライホイールとMoat 実行能力の最適配置とAI戦略
kubell_hr
0
2.1k
Microsoft 365 / Microsoft 365 Copilot : 自分の状態を確認する「ラベル」について
taichinakamura
0
470
AI駆動開発で生産性を追いかけたら、行き着いたのは品質とシフトレフトだった
littlehands
0
450
QAエンジニアはどうやって プロダクト議論の場に入れるのか?
moritamasami
2
410
生成AIが変える SaaS の競争原理と弁護士ドットコムのプロダクト戦略
bengo4com
1
3.6k
拝啓、あの夏の僕へ〜あなたも知っているApp Runnerの世界〜
news_it_enj
0
220
AIが自律的に働く時代へ Amazon Quick で実現するAIエージェント紹介
koheiyoshikawa
0
190
独断と偏見で試してみる、 シングル or マルチエージェント どっちがいいの?
shichijoyuhi
1
240
新卒エンジニア研修、ハンズオンの設計における課題と実践知/ #tachikawaany
nishiuma
2
130
20260513_生成AIを専属DSに_AI分析結果の検品テクニック_ハンズオン_交通事故データ
doradora09
PRO
0
210
オライリーイベント登壇資料「鉄リサイクル・産廃業界におけるAI技術実応用のカタチ」
takarasawa_
0
330
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
A Soul's Torment
seathinner
6
2.8k
Thoughts on Productivity
jonyablonski
76
5.1k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
500
Rails Girls Zürich Keynote
gr2m
96
14k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.3k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
380
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
380
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Transcript
REST
ToC Resources Actions/Verbs Security
Go Watch ! Hypermedia APIs by Jon Moore http:// vimeo.com/20781278
! Building Restful APIs, and how learning the word hypermedia will make you look smarter - Sebastien Lambla http://vimeo.com/37936696
Resources ! Anything that is important enough to be referenced
as a thing in itself.
Resources - Examples ! A movie ! A bank account
! A purchase order ! A time entry
Resources ! Must have a unique address. ! HTTP URIs
(Uniform Resource Identifier)
URI ! In a RESTful web service a URI is
a hyperlink to a resource.
URI ! The only means to exchange representations of resources.
! /user?id=29123 ! /employee/007/vacations
URI ! Used to link resources together {name: “Jon Doe”,
rel: [ {self: ‘http://a.domain.com/user/4123’}, {address: ‘http://a.domain.com/address9823’} ]}
Representations ! What is sent back between clients and servers
Representations ! Different clients can consume different representations of the
same resource. ! Resource must be available through the same URL.
URL ! Defines the network location of a specific resource
URL ! http://a.domain.com/user?id=12345
URL ! Format Representation determined by Content- Type application/json application/text
application/xml
URL : Content-Type ! http://www.w3.org/Protocols/rfc2616/rfc2616- sec14.html#sec14.17
HTTP Actions/Verbs ! GET ! PUT ! DELETE ! POST
! PATCH
GET ! http://www.w3.org/Protocols/rfc2616/rfc2616- sec9.html#sec9.3 ! For Retrieving resources ! Can
not have side effects ! Can act as both read & query operations
POST ! Creates a new resource ! http://www.w3.org/Protocols/rfc2616/rfc2616- sec9.html#sec9.5
POST : Status ! 201 - Created ! 200 (OK)
! 204 (No Content) ! 202 (Accepted - processing not completed)
PUT ! Update or Create ! http://www.w3.org/Protocols/rfc2616/rfc2616- sec9.html#sec9.6
PUT : Status ! 201 - Created ! 200 -
OK ! 204 (No Content)
DELETE ! Delete resource ! http://www.w3.org/Protocols/rfc2616/rfc2616- sec9.html#sec9.7
DELETE : Status ! 200 (OK - Response Includes entity)
! 202 (Accepted - Will process later) ! 204 (No Content - No entity)
PATCH ! Partial Updates
HTTP Status Codes ! 1xx informational messages ! 2xx success
messages ! 3xx redirects client to another URL ! 4xx client-side error ! 5xx server-side error ! http://www.w3.org/Protocols/rfc2616/rfc2616- sec10.html
Security ! Basic Auth (username/password) ! OAuth (auth provider, user
consent) ! API Keys