Skip to content

Latest commit

 

History

History
 
 

asp-net-core

ASP.NET Core demo

This demo is composed of two solutions which demonstrate UI Composition techniques using ASP.NET Core.

In order to run the demos, you require the latest .NET Core Runtime in the 2.0.x version range.

Divergent.CompositionGateway

Divergent.CompositionGateway shows how to host an ASP.NET Core API gateway, or reverse proxy, that composes HTTP responses from multiple backend APIs. To run this sample ensure that the following projects are set as startup projects:

  • Divergent.Sales.API.Host
  • Divergent.Shipping.API.Host
  • Divergent.CompositionGateway

Use an HTTP client such as Postman to test the gateway. Here are a few sample HTTP requests that can be used:

The postman-collection.json file contains the same set of HTTP requests as a collection that can be imported directly into Postman.

Divergent.Website

Divergent.Website is an ASP.NET Core MVC app that composes HTTP responses from multiple backend APIs directly into MVC views. To run this sample ensure that the following projects are set as startup projects:

  • Divergent.Sales.API.Host
  • Divergent.Shipping.API.Host
  • Divergent.Website

Use a web browser to test the website.