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
120
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
51
Docker bake(とCache)でCI/CDを改善する
sunyryr
0
600
WebAPI の設計
sunyryr
0
87
OpenAPI×LaravelでAPI開発を格段に便利にする方法
sunyryr
0
1.1k
server side swift - codable
sunyryr
0
250
iOSアプリだけじゃないSwift
sunyryr
0
150
Other Decks in Programming
See All in Programming
Zendeskのチケットを Amazon Bedrockで 解析した
ryokosuge
3
310
Introducing ReActionView: A new ActionView-compatible ERB Engine @ Rails World 2025, Amsterdam
marcoroth
0
690
詳解!defer panic recover のしくみ / Understanding defer, panic, and recover
convto
0
240
print("Hello, World")
eddie
2
530
AWS発のAIエディタKiroを使ってみた
iriikeita
1
190
250830 IaCの選定~AWS SAMのLambdaをECSに乗り換えたときの備忘録~
east_takumi
0
390
そのAPI、誰のため? Androidライブラリ設計における利用者目線の実践テクニック
mkeeda
2
310
Oracle Database Technology Night 92 Database Connection control FAN-AC
oracle4engineer
PRO
1
450
Android 16 × Jetpack Composeで縦書きテキストエディタを作ろう / Vertical Text Editor with Compose on Android 16
cc4966
2
230
Deep Dive into Kotlin Flow
jmatsu
1
350
HTMLの品質ってなんだっけ? “HTMLクライテリア”の設計と実践
unachang113
4
2.9k
請來的 AI Agent 同事們在寫程式時,怎麼用 pytest 去除各種幻想與盲點
keitheis
0
120
Featured
See All Featured
Building Adaptive Systems
keathley
43
2.7k
GraphQLの誤解/rethinking-graphql
sonatard
72
11k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
112
20k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
Thoughts on Productivity
jonyablonski
70
4.8k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
810
Faster Mobile Websites
deanohume
309
31k
Writing Fast Ruby
sferik
628
62k
Scaling GitHub
holman
463
140k
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ͷΤίγεςϜͰ ։ൃΛศརʹ͍͖ͯ͠·͠ΐ͏ʂ
͓͠·͍