Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "martp00"

Thank you for your answer, the url doesn't look to work,

I try to decorate my function with this [ProducesResponseType(200, Type = typeof(ResponseWrapper<AuthenticateResultModel>))]

Also, I make the custom ResponseWrapper class, it seems to work and now I have also the swagger definition who reflect the wrap result.

So basically using NSwagStudio or Unchase openAPI to generate a c# client api work. But when using it, the return data are null. I see some thread telling to deactivate the wrapresult in PreInitialize() of Core WebCoreModule.cs

Like this:

Configuration.Modules.AbpAspNetCore().DefaultWrapResultAttribute.WrapOnError = false;
Configuration.Modules.AbpAspNetCore().DefaultWrapResultAttribute.WrapOnSuccess = false;

So doing this, make the client api working but, all the website is not working anymore.

Trying to change any data making display the general error box.

Using ASP.NET CORE MVC & jQuery v12.2.0

Showing 1 to 2 of 2 entries