An open API service indexing awesome lists of open source software.

https://github.com/aimenux/jsonconverterwebapidemo

Using custom JsonConverter to return derived types in api response
https://github.com/aimenux/jsonconverterwebapidemo

autofixture automapper fluent-validation integration-tests json-converter mediatr net80 system-text-json webapi xunit-tests

Last synced: 11 days ago
JSON representation

Using custom JsonConverter to return derived types in api response

Awesome Lists containing this project

README

          

[![.NET](https://github.com/aimenux/JsonConverterWebApiDemo/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/aimenux/JsonConverterWebApiDemo/actions/workflows/ci.yml)

# JsonConverterWebApiDemo
```
Using custom JsonConverter to return derived types in api response
```

> In this repo, i m using a [custom JsonConverter](https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/converters-how-to) in order to return multiple derived types in web api response.

**`Tools`** : net 8.0, system.text.json, mediatr, automapper, fluent-validation, xunit