An Internet of things

Musings on iOS development and other bits and pieces

Automatically Generating your Swift API Client with Swagger and Swagger Codegen

At the April 2017 Melbourne CocoaHeads meetup I presented on using Swagger Codegen to automatically generate a Swift 3 API client based on a Swagger spec.

I started with an introduction to Swagger using a spec for the Melbourne CocoaHeads Events API spec and implemented a basic CocoaHeads iOS project.

At the September “Swift 4” meetup I presented a quick five minute demo generating Swift 4 code from swagger codegen. The main purpose was to show the reduction in the amount of boilerplate code generated for Swift 4.