Web API – Json Server

By | 12/05/2021

In this post, we will see how to create a full fake Rest API for testing, using a Javascript library called Json-Server.Here, it is possible to find the project. HOW TO INSTALLFirst of all, we have to install node.js in our system, because Json Server is available as a NPM package.Then, using the command npm… Read More »

Web API – Simple Versioning

By | 05/05/2021

In this post, we will see how to create a simple versioning of a Web API method, using the Routing attribute.However, before starting, I want to remember that the best way for versioning a method it was describe here: Web API – Versioning We create a Web API project called TestAPI and we add a… Read More »

Azure – Topic with Service Bus

By | 28/04/2021

In this post, we will see how to create and read Topics, using Azure Service Bus.Topics and subscriptions provide a one-to-many form of communication in a publish and subscribe pattern. It’s useful for scaling to large numbers of recipients.For more information, go to the Microsoft Web Site. First of all, we go to Azure Portal and we… Read More »

TypeScript – Generics and Modules

By | 21/04/2021

In this post, we will see how to use Generics and Modules in TypeScript. GENERICS If we run the script, this will be the result: Now, using Generics, we will optimise the code: If we run the script, this will be the result: MODULES In TypeScript, a module is a file containing values, functions, or… Read More »

TypeScript – Variables, Array and Methods

By | 07/04/2021

In this post, we will see what TypeScript is and how to configure our system, in order to use it for developing application.First of all, what is TypeScript?From Wikipedia:“TypeScript is a programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript and adds optional static typing to the language. TypeScript is designed for the development of large applications and transcompiles to JavaScript.As… Read More »

Design Patterns – Command

By | 31/03/2021

From https://en.wikipedia.org/wiki/Command_pattern:“In object-oriented programming, the command pattern is a behavioral design pattern in which an object is used to encapsulate all information needed to perform an action or trigger an event at a later time. This information includes the method name, the object that owns the method and values for the method parameters.”In a nutshell, we can use the Command Pattern to encapsulate… Read More »

Azure – Queue with Service Bus

By | 24/03/2021

In this post, we will see how to send message in a queue using Azure Service Bus.But first of all, what is Azure Service Bus?“Microsoft Azure Service Bus is a fully managed enterprise message broker with message queues and publish-subscribe topics.If two applications want to communicate with each other with less dependency, then Azure service… Read More »

Web API – Tips

By | 17/03/2021

In this post, we will see two tips that could help us in order to create Web API. First of all, we create a simple Web API for managing a list of Users: [USER.CS] [USERTYPE.CS] [IUSERCORE.CS] [USERCORE.CS] [USERCONTROLLER.CS] [STARTUP.CS] We have done and now with Postman, we will verify it works fine: TIP #1We can… Read More »