Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Postmanを利用したAPI開発/postman-tutorial
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
nishina
November 23, 2020
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Postmanを利用したAPI開発/postman-tutorial
nishina
November 23, 2020
More Decks by nishina
See All by nishina
1週間で終わらせるはじめてのGo言語学習/beginner-study-go
nishina555
1
200
テキスト校正ツールtextlintの 紹介と導入方法/textlint-overview
nishina555
0
140
認証・認可の仕組みを理解する上で知っておきたい基礎知識/auth-overview
nishina555
1
310
REST APIとの比較でざっくり理解するGraphQL/graphql-introduction
nishina555
0
220
ウィンドウ操作に便利な ショートカットとアプリ紹介/mac-window-shortcut
nishina555
0
200
IPアドレス(IPv4)の仕組み/overview-of-ipaddress
nishina555
0
190
図で理解する自然言語処理/nlp_tutorial
nishina555
0
320
ToDoアプリで学ぶReact/Redux入門/vtecx2_lt2
nishina555
2
3k
DiveIntoOSSThroughHacktoberfest_SPMKT
nishina555
1
360
Other Decks in Programming
See All in Programming
golang-bob.pdf
iwatsukayura
0
130
Verilogで学ぶCPU自作入門
uyuki234
8
4.2k
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
Jetpack Compose Mechanisms
skydoves
3
830
JIS keyboard support in Omarchy
lef237
0
140
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
840
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
phperだってパンチカードでコーディングしたい
o0h
PRO
0
360
ChromeでローカルLLM
ryu1013
0
150
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
180
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
280
dotNET_vulnclicker_intro.pdf
deka_morita
0
150
Featured
See All Featured
WCS-LA-2024
lcolladotor
0
900
Design in an AI World
tapps
1
360
Docker and Python
trallard
47
4.2k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
330
A designer walks into a library…
pauljervisheath
211
25k
Making Projects Easy
brettharned
120
6.8k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Code Reviewing Like a Champion
maltzj
529
40k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
Un-Boring Meetings
codingconduct
0
460
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
エンジニアに許された特別な時間の終わり
watany
109
250k
Transcript
ਔՊ ढ़ PostmanΛར༻ͨ͠API։ൃ
࣍ • ࠓճ͢༰ • Postmanʹ͍ͭͯ • Postmanͷ۩ମతͳ͍ํ • ͓ͬͯ͘ͱศརͳTIPS
• ·ͱΊ
࣍ • ࠓճ͢༰ • Postmanʹ͍ͭͯ • Postmanͷ۩ମతͳ͍ํ • ͓ͬͯ͘ͱศརͳTIPS
• ·ͱΊ
• ʮAPI։ൃͬͯଞͷਓͲ͏͍ͬͯͬͯΔͷʁʯ • ʮAPI։ൃΛ͢Δ্Ͱඞཁʹͳͬͯ͘ΔφϨοδͱ͔͋Δʁʯ ͲͷΑ͏ʹAPI։ൃΛ͍ͯ͠Δ͔ڞ༗ API։ൃͰར༻͍ͯ͠ΔPostmanʹ͍ͭͯ͠Λ͠·͢ ͠ɺAPI։ൃΛ͢Δ্ͰศརͳπʔϧɾϊϋͳͲ͋Εڭ͑ ͯΒ͑Δͱ͏Ε͍͠Ͱ͢
࣍ • ࠓճ͢༰ • Postmanʹ͍ͭͯ • Postmanͷ۩ମతͳ͍ํ • ͓ͬͯ͘ͱศརͳTIPS
• ·ͱΊ
• ࠨ্͔ΒAPIͷొ͕Ͱ͖Δ • ࠨαΠυόʔʹAPIͷҰཡ • APIͷ࣮ߦ݁Ռ͕ը໘தԝʹ දࣔ͞ΕΔ Postmanͷશମ૾ʹ͍ͭͯ
• Params • ύϥϝʔλʔ͖Ͱ ϦΫΤετૹΔͱ͖ʹར༻ • Authorization • ೝূ͕ඞཁͳAPIͷ࣌ʹར༻ •
Headers • Content-TypeɺAcceptΛ ࢦఆ͢Δͱ͖ʹར༻ • Body • JSONΛهड़͢Δͱ͜Ζ APIϦΫΤετͷৄࡉʹ͍ͭͯ
࣍ • ࠓճ͢༰ • Postmanʹ͍ͭͯ • Postmanͷ۩ମతͳ͍ํ • ͓ͬͯ͘ͱศརͳTIPS
• ·ͱΊ
1. HTTPϝιουͱ ΤϯυϙΠϯτΛࢦఆ͢Δ 2. ʰSendʱͰ࣮ߦ 3. APIͷϨεϙϯε͕දࣔ͞ΕΔ GETϝιουʢγϯϓϧͳϦΫΤετʣ
1. ParamsΛબ 2. Key, ValueΛηοτ͢Δͱ ΫΤϦύϥϝʔλͱͯ͠ Ճ͞ΕΔ GETϝιουʢύϥϝʔλ͖ͷϦΫΤετʣ
1. ʰBodyʱΛબ 2. ʰrawʱબ͠ɺJSONܗࣜΛ ࢦఆ͢Δͱɺ JSONͷϦΫΤετϘσΟ͕ ࡞Ͱ͖Δ 3. Headerkey, valueͰηοτ
Λ͢Δ POSTϝιουʢϘσΟɺϔομʔ͖ϦΫΤετʣ
1. ʰBodyʱΛબ 2. ʰform-dataʱΛࢦఆ͢Δͱɺ ը૾ΞοϓϩʔυͷΑ͏ͳ ϦΫΤετΛૹΔ͜ͱ͕Մೳ POSTϝιουʢϑΥʔϜΛར༻ͨ͠ϦΫΤετʣ
࣍ • ࠓճ͢༰ • Postmanʹ͍ͭͯ • Postmanͷ۩ମతͳ͍ํ • ͓ͬͯ͘ͱศརͳTIPS
• ·ͱΊ
Basicೝূ͕ඞཁͳڥʹରͯ͠APIଓ͢Δʹʁ ʰAuthorizationʱʹʰBasic Authʱͱ͍͏ೝূํ๏͕͋Γ·͢ɻ UsernameͱPasswordΛηοτ͢ΕBasicೝূΛύεͰ͖·͢ɻ
ڥ͝ͱʹϗετ໊ͳͲΛΓସ͑Δํ๏ʁ ӈ্ͷࣃंΞΠίϯ͔Βڥ͝ͱʹมΛఆٛͰ͖·͢ɻ ྫ͑ɺHOST_NAMEΛڥ͝ͱʹఆٛ͢Εɺ ʰ{{HOST_NAME}}/api/…ʱͷΑ͏ͳϦΫΤετ͕࣮ߦՄೳʹͳΓ·͢
ଞਓͷPostmanͷઃఆΛΠϯϙʔτ͢Δํ๏ʁ PostmanʹઃఆͷΤΫεϙʔτ/Πϯϙʔτػೳ͕͋ΔͷͰɺ ΤΫεϙʔτͯ͠ΒͬͨσʔλΛΠϯϙʔτ͢Εڥߏங͕ྃɻ
࣍ • ࠓճ͢༰ • Postmanʹ͍ͭͯ • Postmanͷ۩ମతͳ͍ํ • ͓ͬͯ͘ͱศརͳTIPS
• ·ͱΊ
• API։ൃΛ͢Δࡍʹར༻͍ͯ͠ΔPostmanͷհ • PostmanΛར༻͢Δ͜ͱͰೝূը૾ΞοϓϩʔυͳͲ ͷAPIϦΫΤετͷ࣮ߦ؆୯ʹͰ͖Δ • ΤΫεϙʔτɾΠϯϙʔτػೳΛར༻͢Δ͜ͱͰ ڥߏங؆୯ʹͰ͖Δ ·ͱΊ