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
Generating Swift Code with the OpenAPI Spec
Search
David Okun
September 30, 2017
Programming
0
130
Generating Swift Code with the OpenAPI Spec
My talk at Swift Cloud Workshop 2 about generating Swift SDKs based on a Web API Specification
David Okun
September 30, 2017
Tweet
Share
More Decks by David Okun
See All by David Okun
Building A Social Network In Swift
dokun1
4
3.2k
Hacking Facial Recognition With Beards
dokun1
0
230
The Maturation of Swift
dokun1
0
190
RWDevCon 2018 - Server Side Swift With Kitura
dokun1
0
240
IBM & Server Side Swift - Making Your Mobile Developers Full Stack
dokun1
3
360
AVFoundation, iOS 11 & Lumina
dokun1
0
300
Focus on your Functions with Serverless Swift
dokun1
0
150
Developing Applications End To End In Swift On The Cloud
dokun1
0
68
Kitura - What's Next?
dokun1
0
130
Other Decks in Programming
See All in Programming
初めてDefinitelyTypedにPRを出した話
syumai
0
400
WebフロントエンドにおけるGraphQL(あるいはバックエンドのAPI)との向き合い方 / #241106_plk_frontend
izumin5210
4
1.4k
Contemporary Test Cases
maaretp
0
130
Pinia Colada が実現するスマートな非同期処理
naokihaba
4
220
OnlineTestConf: Test Automation Friend or Foe
maaretp
0
110
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
520
.NET のための通信フレームワーク MagicOnion 入門 / Introduction to MagicOnion
mayuki
1
1.4k
Better Code Design in PHP
afilina
PRO
0
120
Content Security Policy入門 セキュリティ設定と 違反レポートのはじめ方 / Introduction to Content Security Policy Getting Started with Security Configuration and Violation Reporting
uskey512
1
520
どうして僕の作ったクラスが手続き型と言われなきゃいけないんですか
akikogoto
1
120
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
2
1.1k
Macとオーディオ再生 2024/11/02
yusukeito
0
370
Featured
See All Featured
Unsuck your backbone
ammeep
668
57k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Code Review Best Practice
trishagee
64
17k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Become a Pro
speakerdeck
PRO
25
5k
What's new in Ruby 2.0
geeforr
343
31k
Embracing the Ebb and Flow
colly
84
4.5k
BBQ
matthewcrist
85
9.3k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Into the Great Unknown - MozCon
thekraken
32
1.5k
Gamification - CAS2011
davidbonilla
80
5k
Transcript
Generating Swift Code Using the OpenAPI Spec By David Okun
@dokun24
What we'll cover today • Wait, why is he talking
about Node.js? • Oh, you can do that in Swift too? • WHY U DO DIS • HOW U DO DIS • References
LoopBack Generate a Web API from the command line
LoopBack Generate a Web API from the command line Ya,
rly.
The Open API Spec An easy way to define a
Web API with one file
The Open API Spec An easy way to define a
Web API with one file Yes, even a Swift Web API.
None
npm install -g loopback-cli
lb
lb model
lb export-api-def
bx plugin install sdk-gen -r Bluemix
bx sdk generate --swift -f ./Definition.yml
bx dev create
DEMO TIME
The Slide You Want A Photo Of • https://strongloop.com/strongblog/generate-client-sdk- loopback-bluemix-cli
• https://console.bluemix.net/docs/cli/index.html • https://github.com/swagger-api/swagger-codegen • https://console.bluemix.net/docs/cloudnative/ dev_cli.html#developercli
Absolutely Shameless Self Promotion • https://github.com/IBM/loopback-in-five • https://github.com/dokun1/Lumina • @dokun24
!