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
Postmanを利用したAPI開発/postman-tutorial
Search
nishina
November 23, 2020
Programming
0
120
Postmanを利用したAPI開発/postman-tutorial
nishina
November 23, 2020
Tweet
Share
More Decks by nishina
See All by nishina
1週間で終わらせるはじめてのGo言語学習/beginner-study-go
nishina555
1
170
テキスト校正ツールtextlintの 紹介と導入方法/textlint-overview
nishina555
0
120
認証・認可の仕組みを理解する上で知っておきたい基礎知識/auth-overview
nishina555
1
260
REST APIとの比較でざっくり理解するGraphQL/graphql-introduction
nishina555
0
210
ウィンドウ操作に便利な ショートカットとアプリ紹介/mac-window-shortcut
nishina555
0
180
IPアドレス(IPv4)の仕組み/overview-of-ipaddress
nishina555
0
160
図で理解する自然言語処理/nlp_tutorial
nishina555
0
280
ToDoアプリで学ぶReact/Redux入門/vtecx2_lt2
nishina555
2
3k
DiveIntoOSSThroughHacktoberfest_SPMKT
nishina555
1
340
Other Decks in Programming
See All in Programming
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
5.9k
Vibe Coding - AI 驅動的軟體開發
mickyp100
0
170
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
160
プロダクトオーナーから見たSOC2 _SOC2ゆるミートアップ#2
kekekenta
0
200
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
480
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
190
CSC307 Lecture 05
javiergs
PRO
0
490
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
180
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
4
240
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
100
Architectural Extensions
denyspoltorak
0
270
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
250
Featured
See All Featured
Building Adaptive Systems
keathley
44
2.9k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
Practical Orchestrator
shlominoach
191
11k
Agile that works and the tools we love
rasmusluckow
331
21k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Faster Mobile Websites
deanohume
310
31k
Six Lessons from altMBA
skipperchong
29
4.1k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
120
How to Talk to Developers About Accessibility
jct
2
130
The Limits of Empathy - UXLibs8
cassininazir
1
210
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
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ϦΫΤετͷ࣮ߦ؆୯ʹͰ͖Δ • ΤΫεϙʔτɾΠϯϙʔτػೳΛར༻͢Δ͜ͱͰ ڥߏங؆୯ʹͰ͖Δ ·ͱΊ