Category Backend
REST API versioning in Go
When developing APIs that are used by external applications, e.g., from customers, it is always important to version them to create a stable system.
You should not simply change the API, as this could lead to breaking changes in the client systems. Instead, create new versions and let the client update to the new version when they are ready.
To create such a system, I tried out multiple architectures, and in this blog post, I want to show you the best practice that I could determine.
In this blog post, I will write a REST server using the web framework Gin and add a versioning system to it.
What is Basic Auth? With ExpressJS example
Sometimes you have to protect your website from unwanted access. There are many options you can choose from. One option is the so-called "basic auth," which uses the "Authorization" header in your HTTP request to verify whether you are allowed to fetch the resource or not.
In this blog post, I want to show you what basic auth is, what the pros and cons of it are, and how you can implement it in your Express.js application.