Skip to main content
web api is incorrect
Source Link
PeteGO
  • 5.8k
  • 3
  • 43
  • 75

For .Net Core Web Api :-

public void ConfigureServices(IServiceCollection services) { ... services.AddJsonFormatters(f => f.Converters.Add(new StringEnumConverter())); ... } 

For .Net Core Web Api :-

public void ConfigureServices(IServiceCollection services) { ... services.AddJsonFormatters(f => f.Converters.Add(new StringEnumConverter())); ... } 

For .Net Core :-

public void ConfigureServices(IServiceCollection services) { ... services.AddJsonFormatters(f => f.Converters.Add(new StringEnumConverter())); ... } 
Source Link
PeteGO
  • 5.8k
  • 3
  • 43
  • 75

For .Net Core Web Api :-

public void ConfigureServices(IServiceCollection services) { ... services.AddJsonFormatters(f => f.Converters.Add(new StringEnumConverter())); ... }