How to Return HTML From ASP.NET Core Web API

added by DotNetKicks
5/5/2022 1:24:40 PM

280 Views

A typical web API returns JSON or XML responses. However, rare cases exist where we need to return responses in other formats. In this article, we are going to learn how to return HTML from ASP.NET Core Web API. We will also state some use cases for this type of API.


0 comments