Swagger Server implemented with python flask on RPI
More complicated application
Earlier today I deployed a application to my rpi3 that started from an example project provided by Resin.io, but now I would like to explore converting an existing application that is a little more complex.
Swagger Petstore
This is a sample Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger.
Swagger Codegen from OpenAPI
I revisted an old project that explored the capability to generate code from a config file describing an API. This project involved manually generating the swagger-codegen from swaggerhub.
Modifying Project to deploy to Resin.io
This was much simpler than I thought it was going to be.
- Copied the Dockerfile
- Two simple modifications
- FROM is template (
FROM resin/%%RESIN_MACHINE_NAME%%-alpine-python:3
) - ENV to enable initsystem (
ENV INITSYSTEM on
) - Force push to the git.resin.io application remote