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
OpenAPIことはじめ
Search
ゆるゆる
September 24, 2021
Programming
0
110
OpenAPIことはじめ
技育CAMP 2021-09 で発表した内容です
https://talent.supporterz.jp/events/c01ce860-9f20-40ce-8d6b-46b14e1b3f25/
ゆるゆる
September 24, 2021
Tweet
Share
More Decks by ゆるゆる
See All by ゆるゆる
改行には気をつけよう
sunyryr
0
27
Docker bake(とCache)でCI/CDを改善する
sunyryr
0
300
WebAPI の設計
sunyryr
0
83
OpenAPI×LaravelでAPI開発を格段に便利にする方法
sunyryr
0
980
server side swift - codable
sunyryr
0
230
iOSアプリだけじゃないSwift
sunyryr
0
130
Other Decks in Programming
See All in Programming
採用事例の少ないSvelteを選んだ理由と それを正解にするためにやっていること
oekazuma
2
1k
StarlingMonkeyを触ってみた話 - 2024冬
syumai
3
270
Haze - Real time background blurring
chrisbanes
1
510
数十万行のプロジェクトを Scala 2から3に完全移行した
xuwei_k
0
270
モバイルアプリにおける自動テストの導入戦略
ostk0069
0
110
【re:Growth 2024】 Aurora DSQL をちゃんと話します!
maroon1st
0
780
テストコード文化を0から作り、変化し続けた組織
kazatohiei
2
1.5k
htmxって知っていますか?次世代のHTML
hiro_ghap1
0
340
SymfonyCon Vienna 2025: Twig, still relevant in 2025?
fabpot
3
1.2k
fs2-io を試してたらバグを見つけて直した話
chencmd
0
240
Recoilを剥がしている話
kirik
5
6.8k
Jakarta EE meets AI
ivargrimstad
0
250
Featured
See All Featured
Facilitating Awesome Meetings
lara
50
6.1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
The Language of Interfaces
destraynor
154
24k
Adopting Sorbet at Scale
ufuk
73
9.1k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
Designing on Purpose - Digital PM Summit 2013
jponch
116
7k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
A designer walks into a library…
pauljervisheath
204
24k
Transcript
OpenAPI͜ͱ͡Ί ٕҭCAMP 2021/09/24 @sun-yryr / גࣜձࣾΏΊΈ
ΏΔΏΔ / sun-yryr / @taittide w גࣜձࣾΏΊΈ৽ଔೖࣾ w 4FSWFSTJEF&OHJOFFS 1)1
/PEFKT ͬͯ·͢ɻ GitHub Twitter ܦྺ ͖ͳ͜ͱ w 4XJGU 4FSWFSTJEF $*$% w 75VCFS taittide sunyryr
͘͡ • OpenAPI / Swaggerͱ • ͳͥOpenAPIΛ͏ͷ͔ • OASͷߏ •
OpenAPI͔Βίʔυͷࣗಈੜʹ͍ͭͯ
OpenAPI / Swaggerͱ • REST APIͷهड़ϑΥʔϚοτ • yaml or jsonͰهड़Ͱ͖Δ
• Ұੲલ·ͰSwagger Speci fi cation͕ଘࡏ͍ͯͨ͠ ͜ΕΛݩʹ֦ு͞ΕͯݱࡏΘΕ͍ͯΔͷ͕OpenAPI(Speci fi cation) • ݱࡏόʔδϣϯ3
OpenAPI / Swaggerͱ • OAS(OpenAPI Speci fi cation) Λิॿ͢Δπʔϧͷ૯শ •
Swagger Editor (هड़ɾม) • Swagger UI (දࣔ) • Swagger Codegen (ίʔυੜ)
ͳͥ͏ͷ͔ • ༷͕ݟ͍͢ • ΄΅ελϯμʔυʹͳ͖͍ͬͯͯΔͷͰڞ༗͕͍͢͠ • ίʔυͷࣗಈੜ͕ศར͗͢Δ • ϓϩάϥϜͰѻ͍͍͢
ͳͥ͏ͷ͔ • ༷͕ݟ͍͢ • ΄΅ελϯμʔυʹͳ͖͍ͬͯͯΔͷͰڞ༗͕͍͢͠ • ίʔυͷࣗಈੜ͕ศར͗͢Δ • ϓϩάϥϜͰѻ͍͍͢
ͳͥ͏ͷ͔ • ༷͕ݟ͍͢ • ΄΅ελϯμʔυʹͳ͖͍ͬͯͯΔͷͰڞ༗͕͍͢͠ • ίʔυͷࣗಈੜ͕ศར͗͢Δ • ϓϩάϥϜͰѻ͍͍͢
ͳͥ͏ͷ͔ • ༷͕ݟ͍͢ • ΄΅ελϯμʔυʹͳ͖͍ͬͯͯΔͷͰڞ༗͕͍͢͠ • ίʔυͷࣗಈੜ͕ศར͗͢Δ • ϓϩάϥϜͰѻ͍͍͢
ͳͥ͏ͷ͔ • ༷͕ݟ͍͢ • ΄΅ελϯμʔυʹͳ͖͍ͬͯͯΔͷͰڞ༗͕͍͢͠ • ίʔυͷࣗಈੜ͕ศར͗͢Δ • ϓϩάϥϜͰѻ͍͍͢
https://fortee.jp/phpcon-2021/proposal/5a58e077-6de6-453a-abff-adbe24cc3156
OASͷߏ
• openapi (όʔδϣϯ) • info (ใ) • servers (ϕʔεURL) •
paths (ΤϯυϙΠϯτ) • components (࠶ར༻ՄೳͳΦϒδΣΫτ) • tags (λά)
info ར༻ن
servers
paths
components
None
tags
OpenAPI͔Βίʔυͷࣗಈੜ
Swagger Codegen language: dart, csharp, go, java, python, ruby, php,
swift5, typescript-fetch, javascript, etc…
Swagger Codegen ੜ͞ΕΔϑΝΠϧ ར༻αϯϓϧ
Swagger Codegen service/AService.js
OpenAPIͷΤίγεςϜͰ ։ൃΛศརʹ͍͖ͯ͠·͠ΐ͏ʂ
͓͠·͍