microservices with swagger, flask and docker
TRANSCRIPT
Microservices with Swagger,Flask and DockerBOSM - Bangalore Open Source Meetup
@dhilipsiva
Tech Lead, Full-Stack & DevOps - @Appknox http://dhilipsiva.com [email protected]
@dhilipsivaTech Lead, Full-Stack & DevOps - @Appknox
I code for Web, Mobile, Embedded & IoT. Open-Source Fanatic. Big Data & Machine LearningEnthusiast. Dad. Atheist
So primarily a Developer + little bit of this & that
Jack of all trades & Master of none
The Open API Speci�cation - V2.0(f.k.a. Swagger Speci�cation)
The OpenAPI Speci�cation (originally known as theSwagger Speci�cation) is a speci�cation for machine-readable interface �les for describing, producing,consuming, and visualizing RESTful web services.(Quoted from Wikipedia)
Swagger™ is a project used to describe anddocument RESTful APIs.
https://github.com/OAI/OpenAPI-Speci�cation
UsesLanguage Neutral & Machine Readable Format
APIs can be de�ned in JSON or YAML
API-First Development
Tooling Support (core, UI, codegen, editor)
History2010: Tony Tam @Wordnik founded Swagger
2010-2014: Development, Growth, Adoption,Tooling, Community
Early 2015: Swagger acquired by SmartBear
Late 2015: Swagger donated to "LinuxFoundation" as“OpenAPI Speci�cation”
Toolingswagger-core
swagger-ui
swagger-codegen
swagger-editor
swagger-hub
Few of the Language Toolsswagger-node
django-rest-swagger
swagger-php
swagger-js
go-swagger
Hands OnConnection Example Repo: https://github.com/ds-forks/connexion-example
swagger-codegen generate -i swagger.yaml -l java -o /tmp/swagconnexion run swagger.yaml --stub --debug
Docker $ docker build -t connexion-example . $ docker run -d -p 8080:8080 connexion-example $ ./test.sh # do some test HTTP requests
Thanks!
https://github.com/dhilipsiva/talks
Copyright © 2016 dhilipsiva
This copy is released under the MIT License
Source Code SlideShare Link
Questionshttp://dhilipsiva.com