Starts in:
1 DAY
5 HRS
10 MIN
13 SEC
Starts in:
1 D
5 H
10 M
13 S

Activities of "liangshiwei"

Hi,

Suite:

you can change this

Generate code

Your API definition response is not standardized.

See https://abp.io/support/questions/6319/Angular-Proxy-Generation-Cannot-read-properties-of-null-reading-%27replace%27#answer-3a0f8f60-fd10-54ed-9f29-0169898dcef4

Add MyAbpApiDefinitionController to Web project

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(AbpApiDefinitionController))]
public class MyAbpApiDefinitionController : AbpApiDefinitionController
{
    public MyAbpApiDefinitionController(IApiDescriptionModelProvider modelProvider) : base(modelProvider)
    {
    }

    public override ApplicationApiDescriptionModel Get(ApplicationApiDescriptionModelRequestDto model)
    {
        return RemoveNullParameters(base.Get(model));
    }

    public ApplicationApiDescriptionModel RemoveNullParameters(ApplicationApiDescriptionModel model)
    {
        foreach (var action in 
                 model.Modules.Select(x => x.Value)
                     .Select(api => api.Controllers).SelectMany(controllerApi => controllerApi.Values)
                     .SelectMany(controller => controller.Actions.Values))
        {

            action.Parameters.RemoveAll(x => x.Type == null && x.TypeSimple == null);
            action.ParametersOnMethod.RemoveAll(x => x.Type == null && x.TypeSimple == null);
        }

        return model;
    }
}

https://us05web.zoom.us/j/5929668302?pwd=UXl2M2RUeG5PazVSY2ZCOW1NMUxtZz09

Since the problem was resolved, i close this.

but we want to check the authorization, how can we do it?

You need to manually call the API to check it.

Hi,

make sure you generate oppeniddict.pfx file correctly

Add new Claim(AbpClaimTypes.TenantId, tenantId)

Hi,

could you please create a new question, thanks.

You can try to check if this issue can be reproduced locally or in other environments.

Hi,

Sorry, but I can't find anything.

now blazor is the host?

yes, it is. the new Blazor web app mixed Blazor and Host.

if you want , you can use webassembly. abp new BookStore -t app -u blazor

HI,

remove ;

and it works

Showing 21 to 30 of 6100 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06