Category Archives: Web API

Web API – GraphQL query in ASP.NET Core (Part I)

By | 16/03/2022

In this post, we will see how to create and consume GraphQL API query using .NET Core.But first of first, what is GraphQL?From GraphQL website:“GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API,… Read More: Web API – GraphQL query in ASP.NET Core (Part I) »

Web API – CRUD operations with MongoDB

By | 12/01/2022

In this post, we will see how to create a WebAPI project to execute CRUD operations in a MongoDB database. We start creating a Docker-compose file in order to define a MongoDB container and a Mongo-Express container: [DOCKER-COMPOSE.YML] Then, with the command docker-compose up -d, we run the docker-compose file: Now, we will add a… Read More: Web API – CRUD operations with MongoDB »

Web API – Reading values from Appsettings.json

By | 01/12/2021

In this post, we will see how to read values from appsettings file in a Web API project. We start creating a new Web API project where, we will add a section called AppInfo in the appsettings.json file: Then, we will create a new controller called ReadFileController where we will add three methods for reading… Read More: Web API – Reading values from Appsettings.json »

Web API – OData with .NET 5

By | 20/10/2021

In this post, we will see how to implement OData with .NET 5.But first of all, what is OData?From OData.org:“OData (Open Data Protocol) is an ISO/IEC approved, OASIS standard that defines a set of best practices for building and consuming RESTful APIs. OData helps you focus on your business logic while building RESTful APIs without having to worry… Read More: Web API – OData with .NET 5 »