Microservices with Swagger,
Flask and Docker
BOSM - Bangalore Open Source Meetup
@dhilipsiva
Tech Lead, Full-Stack & DevOps - @Appknox
http://dhilipsiva.com
dhilipsiva@gmail.com
@dhilipsiva
Tech Lead, Full-Stack & DevOps - @Appknox
I code for Web, Mobile, Embedded & IoT. Open-
Source Fanatic. Big Data & Machine Learning
Enthusiast. Dad. Atheist
So primarily a Developer + little bit of this & that
Jack of all trades & Master of none
I have no idea what I am
talking about
The Open API Speci cation - V2.0
(f.k.a. Swagger Speci cation)
The OpenAPI Speci cation (originally known as the
Swagger 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 and
document RESTful APIs.
https://github.com/OAI/OpenAPI-Speci cation
Uses
Language Neutral & Machine Readable Format
APIs can be de ned in JSON or YAML
API-First Development
Tooling Support (core, UI, codegen, editor)
History
2010: Tony Tam @Wordnik founded Swagger
2010-2014: Development, Growth, Adoption,
Tooling, Community
Early 2015: Swagger acquired by SmartBear
Late 2015: Swagger donated to "Linux
Foundation" as“OpenAPI Speci cation”
Google Search Activity
GitHub - Starts / Forks / Pulls
Issues / Events / Commits
Tooling
swagger-core
swagger-ui
swagger-codegen
swagger-editor
swagger-hub
Few of the Language Tools
swagger-node
django-rest-swagger
swagger-php
swagger-js
go-swagger
Break
Hands On
Connection Example Repo: https://github.com/ds-
forks/connexion-example
swagger-codegen generate -i swagger.yaml -l java -o /tmp/swag
connexion 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
Questions
http://dhilipsiva.com

Microservices with Swagger, Flask and Docker

  • 1.
    Microservices with Swagger, Flaskand Docker BOSM - Bangalore Open Source Meetup @dhilipsiva Tech Lead, Full-Stack & DevOps - @Appknox http://dhilipsiva.com dhilipsiva@gmail.com
  • 2.
    @dhilipsiva Tech Lead, Full-Stack& DevOps - @Appknox I code for Web, Mobile, Embedded & IoT. Open- Source Fanatic. Big Data & Machine Learning Enthusiast. Dad. Atheist So primarily a Developer + little bit of this & that Jack of all trades & Master of none
  • 3.
    I have noidea what I am talking about
  • 4.
    The Open APISpeci cation - V2.0 (f.k.a. Swagger Speci cation) The OpenAPI Speci cation (originally known as the Swagger 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 and document RESTful APIs. https://github.com/OAI/OpenAPI-Speci cation
  • 5.
    Uses Language Neutral &Machine Readable Format APIs can be de ned in JSON or YAML API-First Development Tooling Support (core, UI, codegen, editor)
  • 6.
    History 2010: Tony Tam@Wordnik founded Swagger 2010-2014: Development, Growth, Adoption, Tooling, Community Early 2015: Swagger acquired by SmartBear Late 2015: Swagger donated to "Linux Foundation" as“OpenAPI Speci cation”
  • 7.
  • 8.
    GitHub - Starts/ Forks / Pulls
  • 9.
    Issues / Events/ Commits
  • 10.
  • 11.
    Few of theLanguage Tools swagger-node django-rest-swagger swagger-php swagger-js go-swagger
  • 12.
  • 13.
    Hands On Connection ExampleRepo: https://github.com/ds- forks/connexion-example swagger-codegen generate -i swagger.yaml -l java -o /tmp/swag connexion run swagger.yaml --stub --debug
  • 14.
    Docker $ docker build-t connexion-example . $ docker run -d -p 8080:8080 connexion-example $ ./test.sh # do some test HTTP requests
  • 15.
    Thanks! https://github.com/dhilipsiva/talks Copyright © 2016dhilipsiva This copy is released under the MIT License Source Code SlideShare Link Questions http://dhilipsiva.com