Using Code First to build Web APIs using Swagger 2.0 in Golang

preview_player
Показать описание
Welcome to this System Design video in Golang, in this episode I cover "Building Web APIs using the Code First Approach and Swagger 2.0" which consist of coding the API directly and generating documentation afterwards with Swagger 2.0

Code First's pros are: when there's a need for fast time to market and developers know what to do exactly and quickly.

Code First's cons include: there's no documentation (outside of reading the source code) and guidelines are not unified.

== Recommended Reading

== Relevant links

== All Go/Golang Playlists

== Socials

00:00 Start
00:18 What is an API?
01:45 What is Code First Approach?
02:01 What is Swagger / OpenAPI 2.0?
03:01 Alternatives to Swagger
03:50 Demo
16:56 Cons and Pros of Code First Approach?
18:18 Conclusion

=== 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... and of course Go!

Keep it up. Don't give up!

#golang #tutorial #systemdesign

=== Our Vlog Channel

=== Affiliate links

DISCLAIMER: Some of the links shared in the description are affiliate links. As a member of these affiliate programs, I earn a small commission from your purchases at no additional cost to you. I appreciate your support! 💖
Рекомендации по теме
Комментарии
Автор

Thanks for the video Mario! You can do a video showing more about Golang 1.18.1 beta, that is implementing generics! It will be very cool, i appreciate your work. Thank you!

otaviocelestinodossantos
Автор

Thank you! This is exactly what I need!!

stepanserebryakov
Автор

Thanks for the video. Please extend this tutorial to show how to serve swagger-UI using go swagger.

nirajgupta
Автор

Hey Mario! Thanks for the video! I wanted to know if you will ever do a video showing how to accept payments on a website using Go. Like, for example, how to implement PayPal in a web app. Thank you!

AlexisRodriguez-rkts
Автор

nice, but please make a video about vim your setup 😬, im very interested

rohmatmret
Автор

Muchas gracias por el excelente video
Me doy cuenta que sabes de lo que hablas porque tienes nVIM de IDE 😁👌

luisrivera
Автор

do you have any video or page link where authorization is added for go-swagger? if yes please share

nikhilsharma
Автор

Hey Mario - just curious as to why you would choose OpenAPI 2 instead of OpenAPI 3?? Are there any specific benefits of using 2.0 over 3?

ecam
Автор

hello, how do I generate a swagger link/url/endpoint when I start my server? I mean you are using the editor by copying and pasting the spec file, buy I would like to generate a link on start so you can click and open swagger easily

golangthebest
welcome to shbcf.ru