Golang Microservices: REST APIs – OpenAPI / Swagger



Golang Microservices: REST APIs – OpenAPI / Swagger

Golang Microservices: REST APIs - OpenAPI / Swagger

Let me share with you another tip when building microservices in Go! Implementing REST APIs, first HTTP Handlers, then using custom types, next OpenAPI 3, Swagger tools and finally versioning!

* Blog post: https://mariocarrion.com/2021/05/02/golang-microservices-rest-api-openapi3-swagger-ui.html
* Previous episode: “Golang Microservices: REST APIs – Custom Types” https://youtu.be/UmVYkEYm4hw
* Example code: https://github.com/MarioCarrion/todo-api-microservice-example/tree/074bbb9f4d0f79e5bced943c10c56013705969a9

* The Design of Web APIs: https://amzn.to/2PNtQvi (affiliate link)
* Irresistible APIs: Designing web APIs that developers will love: https://amzn.to/38n5ChW (affiliate link)

* Playlist “Golang Tools and Packages”: https://www.youtube.com/playlist?list=PL7yAAGMOat_HEEOvH99agDs_5g51A0Ls3
* Playlist “Building Microservices in Go/Golang”: https://www.youtube.com/playlist?list=PL7yAAGMOat_Fn8sAXIk0WyBfK_sT1pohu

* Differences between OpenAPI/Swagger 2.x and 3.x: https://stoplight.io/blog/difference-between-open-v2-v3-v31/

00:00 Start
00:25 Implement OpenAPI (fka Swagger)
00:52 Why is OpenAPI / Swagger even needed?
03:07 What is OpenAPI? What is Swagger?
04:55 How to put it all together using Go?
07:12 Demo time!
07:25 Swagger UI Integration
08:55 Generating OpenAPI JSON/YAML
15:14 Recap
16:50 Parting words

Who am I:

HelloπŸ‘‹πŸΌ! I’m Mario, a Hands-on Software Architect and Lead Backend Engineer with more than 16 years of professional experience building all kinds of software including on-premise Industrial Automation Systems, Linux Accessibility Desktop and Browser Components as well as Distributed Advertising Microservices.

Every week I will share with you different topics I’ve learned while working for small startups and large companies including the processes I’ve followed over the years for successfully delivering complex enterprise systems from start to end.

Subscribe if you like Software Development, Software Architecture and Systems Design!

Keep it up. Don’t give up!

#golang #microservices #programming

— Our affiliate links below

Shop our favorite products β†’ https://www.amazon.com/shop/rubycarrion
Vlogging setup β†’ https://rubycarrion.com/camerasforvlogging/
Shop now and save at BestBuy β†’ https://bestbuy.7tiv.net/2bB4g
DJI Osmo Action In Stock, Unleash Your Other Side β†’ https://click.dji.com/AIwI1huLYJ51YBmF82L_FQ?pm=link&as=0001&ch=rubycarriondjiosmoaction
Get a 30 day FREE trial of Epidemic Sound β†’ https://www.epidemicsound.com/referral/szx441/
Try Amazon Prime 30-Day FREE trial β†’ https://amzn.to/3s0el1R
I love getting Cash Back and think you will too! Join for free and get $20 when you spend $20 β†’ https://www.rakuten.com/r/RUBYRA132?eeid=28187
Sign up to start using vidIQ to grow your YouTube channel for FREE β†’ https://vidiq.com/rubycarrion

— Our Vlog Channel

https://www.youtube.com/c/RubyCarrion/videos

Comments are closed.