Skip to content

Kicking the tires with Connexion for API First development

Notifications You must be signed in to change notification settings

DavidAStevenson/connexion-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API First experiments

This is a toy repo to experiment with connexion. Rather than write code and generate OpenAPI definitions from the code, with Connexion the OpenAPI definition can be written first, before any code.

Notes

  • this python app is a rip-off from the Docker Get-Started app.
  • modifications include the additional use of connexion
  • the Dockerfile is modified to use an alpine image, and the pip requirements are fetched before the app is copied to the image, so as to enjoy some caching goodness

Inspiration from

Build in docker:

docker build -t connexion-api .

Run in docker:

docker run -p 8080:8080 --name=apitest --rm connextion-api

Then in your browser

https://<docker-machine ip>:8080
https://<docker-machine ip>:8080/api/greeting
https://<docker-machine ip>:8080/api/ui

About

Kicking the tires with Connexion for API First development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published