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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
ゆるゆる
September 24, 2021
Programming
0
150
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
76
Docker bake(とCache)でCI/CDを改善する
sunyryr
0
660
WebAPI の設計
sunyryr
0
88
OpenAPI×LaravelでAPI開発を格段に便利にする方法
sunyryr
0
1.1k
server side swift - codable
sunyryr
0
260
iOSアプリだけじゃないSwift
sunyryr
0
160
Other Decks in Programming
See All in Programming
GC言語のWasm化とComponent Modelサポートの実践と課題 - Scalaの場合
tanishiking
0
110
コードレビューをしない選択 #でぃーぷらすトウキョウ
kajitack
3
890
CSC307 Lecture 15
javiergs
PRO
0
240
Railsの気持ちを考えながらコントローラとビューを整頓する/tidying-rails-controllers-and-views-as-rails-think
moro
5
390
Ruby x Terminal
a_matsuda
7
590
Fundamentals of Software Engineering In the Age of AI
therealdanvega
1
240
Agent Skills Workshop - AIへの頼み方を仕組み化する
gotalab555
15
8.5k
Cyrius ーLinux非依存にコンテナをネイティブ実行する専用OSー
n4mlz
0
130
エージェント開発初心者の僕がエージェントを作った話と今後やりたいこと
thasu0123
0
240
maplibre-gl-layers - 地図に移動体たくさん表示したい
kekyo
PRO
0
240
DSPy入門 Pythonで実現する自動プロンプト最適化 〜人手によるプロンプト調整からの卒業〜
seaturt1e
1
680
TipKitTips
ktcryomm
0
160
Featured
See All Featured
Done Done
chrislema
186
16k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
190
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
470
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Scaling GitHub
holman
464
140k
Unsuck your backbone
ammeep
672
58k
Embracing the Ebb and Flow
colly
88
5k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Why Our Code Smells
bkeepers
PRO
340
58k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
230
Faster Mobile Websites
deanohume
310
31k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
230
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ͷΤίγεςϜͰ ։ൃΛศརʹ͍͖ͯ͠·͠ΐ͏ʂ
͓͠·͍