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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
300
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
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
150
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
330
SREの越境 / SRE Collaboration
y0hgi
2
290
すこし踏み込む CancellationToken
htkym
2
1.5k
速く作れる。その次は、速く確かめられる開発へ 〜AIネイティブ開発を支える、Shift Down〜 / Can build fast. Next, moving to development where we can verify fast.
rkaga
8
5.2k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
360
ゲームコントローラやキーボードのファームウェアをSwiftで書く
kishikawakatsumi
1
270
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
360
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
180
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1k
AGENTS.md Is Not Enough:Build Skills, Don't Download Them
lx_t
0
130
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
1
2k
Featured
See All Featured
Side Projects
sachag
456
43k
Google's AI Overviews - The New Search
badams
0
1.6k
The World Runs on Bad Software
bkeepers
PRO
72
12k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
We Have a Design System, Now What?
morganepeng
55
8.3k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
GraphQLとの向き合い方2022年版
quramy
50
15k
Practical Orchestrator
shlominoach
192
12k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
270
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ϦΫΤετͷ࣮ߦ؆୯ʹͰ͖Δ • ΤΫεϙʔτɾΠϯϙʔτػೳΛར༻͢Δ͜ͱͰ ڥߏங؆୯ʹͰ͖Δ ·ͱΊ