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
Simple Rest API
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
hfcorriez
December 24, 2014
Design
160
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Simple Rest API
Describe How to make the Simple Rest API
hfcorriez
December 24, 2014
More Decks by hfcorriez
See All by hfcorriez
Tools for startup
hfcorriez
1
51
Other Decks in Design
See All in Design
デザイナーが主導権を握る、AI協業の本音と実践
satosio
7
3.3k
kintone開発におけるライターの役割の変化〜AI活用を添えて〜 / Changes in the Role of Writers in Kintone Development
keroyama
0
100
情報を翻訳する-伝わる可視化3原則とオープンデータ活用-
hjmkth
1
270
はじめての演奏会フライヤーデザイン
chorkaichan
1
310
「デザイン」の自分ごと化から始める、デザインピープルのふるまい
mewmo
0
260
チームをデザイン対象にする / Design for your team
kaminashi
1
1.5k
Build for the Web, Build on the Web, Build With the Web
csswizardry
0
430
test deck title
shotamatsuo
0
1.5k
PAMPHLET.pdf
mhand01
0
480
全員がアウトプットを出せる時代、 誰を採用する?
nishame
0
580
AI時代に求められるUXデザインのアプローチ
xtone
1
5.3k
UI生成の鍵は要件整理 -デザインプロセスのエッセンスを プロンプト作成に取り入れよう-
abokadotyann
4
880
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.3k
Ruling the World: When Life Gets Gamed
codingconduct
0
250
Navigating Weather and Climate Data
rabernat
0
220
Building an army of robots
kneath
306
46k
Are puppies a ranking factor?
jonoalderson
1
3.5k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
190
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
150
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
Producing Creativity
orderedlist
PRO
348
40k
Making the Leap to Tech Lead
cromwellryan
135
9.9k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
580
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Transcript
简单的 Rest API
None
None
何谓 HTTP (&5QBUIGJMFIUNM)551 6TFS"HFOU4BGBSJ "VUIPSJ[BUJPOBQJYYYYYYY $PPLJFYYYYYYYY [blank line here] )5510,
%BUF'SJ %FD(.5 $POUFOU5ZQFUFYUIUNM $POUFOU-FOHUI IUNM CPEZ I)BQQZ/FX.JMMFOOJVNI NPSFGJMFDPOUFOUT
垃圾设计
好的设计
Simple
None
简单分解 c νಆ 4FDVSJUZ c ਫ਼ࣥ &OEQPJOU c
)551ٚم 7FSCT c ݖੲ 'JMUFST c ҆ )FBEFST c հ༂ԩ &SSPSIBOEMJOH c ْ߭ࢲݔ 3FTQPOTF c ಪᆣč"VUIĎ
安全 c ࣐ਈႨIUUQT c Ⴈ0"VUIa#BTJD"VUI 5PLFO֩ಪᆣ c ष٢֥"1*ླေቓՑ॥ᇅބ*1॥ᇅ
路径 c ࣐ਈႨ৫֥თBQJQVCVJN c ࣐ਈႨջϱЧݼ֥ਫ਼ࣥđбೂWđBQJW c ሧჷႨگඔDBUT c ҂ေႨջ۬ൔֹ֥ᆶDBUTKTPO
https://api.pubu.im/v1/cats ၂۱ປૅ֥ਫ਼ࣥ
方法 Resource POST GET PUT update DELETE /cats Create cat
List cats Bulk update cats Delete all dogs /articles/1234 - Show cat with ID Update if exists Delete with ID /cats/OP - List cats with operation Bulk update with Operation - /cats/1234/OP - Show a cat with Operation Update with Operation -
过滤 c ႨRVFSZTUSJOHটݖੲDBUT UZQFUFYU c ٳ်ބնཬҐႨഈ֥ٚൔDBUT QBHFTJ[F c ႳѓٚൔᆦӻDBUT GSPNTJ[F
c ᆷקሳ؍DBUT GJFMETJE OBNF
头部 c ކ֥Ⴈሑ c ކ֥॥ᇅߏթ c ކ֥ഡᇂᆦӻ۬ൔ c ष٢"1*ླေᆦӻॴთטႨ Status
code Description 200 OK 201 Created 301 Move Temporature 302 Move Permalink 401 Not Authorized 403 Fobidden 404 Not Found
错误处理 c ႨY Y֥ሑ c ࣐ॖି֥૭ඍհ༂ c षؿߌ༯ൻԛհ༂ט൫ྐ༏ c ۷؟ྐ༏ֹᆶᆷཟ
\ DPEF NFTTBHFo$BUJTBMSFBEZEFBEp NPSF*OGPoIUUQTBQJQVCVJNWDBUTEFBE@JOGPp ^
返回结果 c Ⴈӈ֥ࢲܒ߄۬ൔYNMaKTPOaKTPOQ c ыࢲܒ۷ൡކࡥֆ֥ཛଢđళสࢲܒ۷ൡކگᄖ֥ཛଢ c ൈࡗႨᆜྙ֥ݸ૰ඔ c DBNM$BTFބVOEFSTDPSF@DBTF࿊ᄴીପહᇗေ c
҂ေᇗگ૭ඍ*%bDBU*EJE \ JE OBNFo-VDZp BHF DSFBUFE"U ^ \ NFUB\l^ EBUB\ JE OBNFo-VDZp BHF DSFBUFE"U ^ ^
认证 c ࣐ਈ҂Ⴈ4FTTJPOಪᆣ c ༀс҂ေႨૼ໓ૡቓູ֨ ᆣ c ष٢"1*࣐ਈႨ0"VUI
Simple is not easy!