Generating Swift Code with the OpenAPI Spec

0f552f8411335ac247e390aa03790990?s=47 David Okun
September 30, 2017

Generating Swift Code with the OpenAPI Spec

My talk at Swift Cloud Workshop 2 about generating Swift SDKs based on a Web API Specification

0f552f8411335ac247e390aa03790990?s=128

David Okun

September 30, 2017
Tweet

Transcript

  1. Generating Swift Code Using the OpenAPI Spec By David Okun

    @dokun24
  2. 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
  3. LoopBack Generate a Web API from the command line

  4. LoopBack Generate a Web API from the command line Ya,

    rly.
  5. The Open API Spec An easy way to define a

    Web API with one file
  6. The Open API Spec An easy way to define a

    Web API with one file Yes, even a Swift Web API.
  7. None
  8. npm install -g loopback-cli

  9. lb

  10. lb model

  11. lb export-api-def

  12. bx plugin install sdk-gen -r Bluemix

  13. bx sdk generate --swift -f ./Definition.yml

  14. bx dev create

  15. DEMO TIME

  16. 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
  17. Absolutely Shameless Self Promotion • https://github.com/IBM/loopback-in-five • https://github.com/dokun1/Lumina • @dokun24

  18. !