Swagger Driven Development

Swagger Driven Development

Quick lightning talk from GopherCon EU Tenerife.
Relevant code: https://github.com/suda/go-swagger-example

Cba56198463ece8d5c1cc1d6a353ddbd?s=128

Wojtek Siudzinski

June 01, 2019
Tweet

Transcript

  1. GopherCon EU 1 June 2019 1 Swagger Driven Development 5

  2. 2 $ whoami Wojtek `suda` Siudzinski Señor Software Engineer @

    Particle Founder @ Appsome! @suda on Twitter and GitHub GopherCon EU 1 June 2019
  3. 3 GopherCon EU 1 June 2019 Write code

  4. 4 GopherCon EU 1 June 2019 Write code Generate Swagger

    spec
  5. 5 GopherCon EU 1 June 2019 Write code Generate Swagger

    spec Generate docs
  6. 6 go-swagger tl;dr The main difference between swagger-codegen and go-swagger,

    at this moment is that the latter one actually works... GopherCon EU 1 June 2019
  7. 7 GopherCon EU 1 June 2019 3 4 2 1

    API server Scaffold API server codebase Middlewares Routing, validation and authorization Swagger UI Document the API and the endpoints 1 1 1 2 2 2 3 3 3 API client Generate Go client package 4 4 4
  8. 8 GopherCon EU 1 June 2019 3 Demo time https://github.com/suda/go-swagger-example

  9. 9 Thank you! Questions? Twitter: @suda GitHub: suda E-mail: admin@suda.pl

    GopherCon EU 1 June 2019