GitHub - nelcea/BadgeOpenAPIExample: Example of using swift-openapi-generator to generate client and server side code

This is a sample project used during the "Beyond Xcode: Exploring Apple’s Open-Source Offerings" presentation.
Slides are available at Slides / information from my talks.

This sample project shows how to use the swift-openapi-generator package to generate server and client side code from an OpenAPI specification document.
It also uses the swift-container-plugin to create a container image for the server part.

The example is composed of two projects:

  • a Vapor based server that exposes a single REST API end-point (GET /badges) that returns a list of conference badges information
  • an iOS application that fetches the information exposed by the server and displays it in a simple list