Swift API client sample

The swift client sample uses the OpenAPI generator from Apple which generates the OpenAPI client code on the fly via a plugin.

The client sample is available on GitHub: https://github.com/lab5e/swift-simple and can be built either via XCode or on the command line with

swift run span-sample --api-token [your API token]

The API token is created in the Span dashboard.

The sample includes a ready to use OpenAPI client spec but you should retrieve the latest version of the spec before building the first time:

cd Sources
rm -f openapi.yaml
wget https://raw.githubusercontent.com/lab5e/go-spanapi/main/api/openapi.yaml