How to build REST-ful APIs
Thank you Edwin van Wijk and Sander Molenkamp for inviting me. You can see more interesting videos on DotNETFlix channel on different topics, or read about REST
Thank you Edwin van Wijk and Sander Molenkamp for inviting me. You can see more interesting videos on DotNETFlix channel on different topics, or read about REST
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…
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 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,…
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…
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.
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…
How to view Razor changes without building the project. There is no need to build the project to see changes in Views. When I was a junior developer I remember my team lead telling me: No, you don’t need to rebuild the solution if you modify something views I’ve absorbed…
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…
Is it possible to generate idempotent scripts from EF Core migrations? Automatically? Yes, it is! But first, let’s see what idempotency means. What is an idempotent script? A subroutine with side effects is idempotent if the system state remains the same after one or several calls, in other words, if the function from the…