Naming your REST endpoints

How to name your REST endpoint? How does your endpoint look? Are there any guidelines or best practices? How to name your endpoints? A short introduction We often use APIs to implement CRUD operations, or most APIs start like this, but all of them evolve over time.CRUD is an acronym…

.NET Core with NGINX on Linux

Having .NET Core with NGINX on Linux is easier that you might imagine. In this article I will talk about my experience related to NGINX and what it takes to configure it for the first time. If you come from an IIS/Windows world like me, where you know everything by…

.NET API as a Linux Service

.NET API as a Linux Service is just one of the many options when it comes to hosting. One thing I love about .NET Core is that it runs everywhere. Running .NET APIs as Linux services, allows different organizations to reduce some costs by maybe reusing infrastructure. Before .NET Core,…

Status Codes for REST APIs

When it comes to Status Codes for REST APIs, we are all in a hurry to deliver functionality and we often ignore them. Come as it may. We use what we get. And that’s it. REST as a concept should also be about meaning, longevity and empathy towards our API…

Extending EF Core DbContext

Entity Framework allows you to extend the DbContext class to add your own entities, extend existing entities, and customize them at runtime. All of these in a clean and simple manner, if you are willing to do so. It doesn’t even matter if those entities don’t have a table representation. You can do that by leveraging C# partial classes and method.

Versioning REST APIs

Headers or URL? In the context of REST APIs there is a lot of confusion around versioning. Some people recommend versioning REST APIs by adding the version in the URL. Others don’t version at all, and others recommend versioning REST APIs using headers.Nothing bad so far, but I’ve personally seen…

From .NET 2.2 to 3.1 – Routing issues

Having a website on 2.2, I thought that there is about the case to upgrade. Now or never I said. How hard can it be? I went pretty smooth, by using the -> migration guide..until…. I’ve bumped into routing. I’ve spent a decent amount of time trying to debug the…