Posts

Showing posts from April, 2020

Microservices with .NET Core Web API, EntityFrameworkCore and Ocelot API Gateway

Image
Hi Guys, I created a simple Microservices solution using .NET Core Web API, EntityFrameworkCore and Ocelot API Gateway. Hope you like it. 1) Solution  The solution consists of four .NET Core Projects. APIGateway, ProductMicroservice, UserMicroservice are Web API projects while Microsoft.DataAccess is a class library with EntityFrameworkCore. And this project is referred by ProductMicroservice, UserMicroservice. 2) UserMicroservice  This project has a simple UserController as following, namespace UserMicroservice.Controllers {     [Route("api/[controller]")]     public class UserController : Controller     {         DatabaseContext _databaseContext;         public UserController()         {             _databaseContext = new DatabaseContext();         }         // GET: api/...