Skip to content

.NET Core Web projects to demonstrate WebApiClientGen, with examples for vue, React, jQuery, Angular and MAUI

Notifications You must be signed in to change notification settings

zijianhuang/DemoCoreWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strongly Typed Client API Generators generate strongly typed client API in C# codes and TypeScript codes. This repository contains code examples explained in the following CodeProject.com articles:

Remarks:

  • .NET Core 2.x had dependency on Newtonsoft.JSON, while .NET Core 3.0 had been decoupled from Neewtonsoft.JSON and the default serializer is working well in most scenarios except for Tuple, 2D array and anonymous object etc. If you would support these data types or would keep 100% compitability with the serialization of NewtonSoft.JSON, you should explicitly include package Microsoft.AspNetCore.Mvc.NewtonsoftJson and add add AddNewtonsoftJson() in Startup.cs.

And this repository contains the demo applications.

Server demo

  1. Core3WebApi, ASP.NET Core Web API providing data to other test suites.
  2. Core3Mvc, ASP.NET Core MVC.

Client Demo

  1. Tour of the Heroes with MAUI, migrated from Xamarin Heroes, in folder mobile.
  2. Tour of the Heroes with Aurelia in folder AureliaHeroes. Integration test suite included.
  3. Tour of the Heroes with React TS in folder ReactHeroes. Integration test suite included.
  4. vueTS, JEST test suite with Vue TypeScript and the generated TypeScript codes.