Tag Archives: Web API

WEB API – Gateway with Ocelot

By | 07/08/2020

In this post, we will see how to create an API Gateway using Ocelot. First of all, why should we use an API Gateway?From Microsoft web site:“In a microservices architecture, the client apps usually need to consume functionality from more than one microservice. If that consumption is performed directly, the client needs to handle multiple… Read More »

Unit Test – Web API

By | 31/07/2020

In this post, we will see how to implement Unit Tests for the Web API created in the post: Docker – Web API and Sql Server. First of all, we open Visual Studio and we add a xUnit Test Project called TestWebApiServices: Then, we add a file called UserControllerUnitTests, where we will define all objects… Read More »

Web API – Versioning

By | 18/03/2020

In this post, we will see how to manage the versioning in a .net core Web API service, using three different approaches:1) Query String-Based Versioning2) URL-Based Versioning3) HTTP Header-Based Versioning First of all, we open Visual Studio 2019 and we create a Web API project: If we run the application, this will be the output:… Read More »

Python – How to create a RESTful service

By | 14/01/2020

In this post, we will see how to create a RESTful service for handling data of some Dogs, with Python and Flask. First of all, what Flask is?From Wikipedia:“Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries.It has no database abstraction layer, form validation, or any… Read More »

Swagger

By | 13/08/2019

In this post, we will see what Swagger is and how to install it in the Web API project created in the post: ASP.NET Core – Web API.First of all, what is Swagger?From the official web site:Swagger allows you to describe the structure of your APIs so that machines can read them. The ability of… Read More »

Web API – ASP.NET Core

By | 06/08/2019

In this post, we will see how to create a RESTful Web Service with ASP.NET Core. We open Visual Studio 2019 and select the template ASP.NET Core Web Application. Then, we select the API template, framework 2.2 and then we click on Create. At the end, we will have a project like that: If we… Read More »