Demonstrates behavior with values of 'Cache-Control' response headers on iOS. For more info and explanations of how 'Cache-Control' response header values affect your iOS apps, see Use Your Headers
See the blog post entry on how to perform the forensics on viewing cache data in the simulator.
The source code for the fake API is also located in Github, but is deployed to Google App Engine (see "urlBase" in the view model.) The backend will frequently spin down to zero instances, so when executing the demo, allow a few seconds for the backend to launch.
I've generated the classes in the generated
folder using the OpenAPI generator, which accepts OpenAPI (formerly Swagger) documentation URLs and produces generated client code.
The command for generating these is openapi-generator generate -g swift5 --skip-validate-spec -i http://localhost:8080/v3/api-docs
. You can also use the GAE-hosted version to generate these files.
For iOS, I've only used the model classes, since I wanted to demonstrate an extremely vanilla call to a REST API.