Activities of "maliming"

hi

You can try to override the Angular services to replace the URL.

For the backend: Replace controllers.

https://abp.io/docs/latest/framework/api-development/auto-controllers#replace-or-remove-controllers

Great 👍

hi

It works for me. Can you share your test template project? liming.ma@volosoft.com Thanks

Answer

Thanks. I will check your logs.

Answer

hi

Can you share the full logs.txt of the authserver?

liming.ma@volosoft.com

Thanks

Great 👍

hi


 Ambiguous HTTP method for action - Hon.IFS.SiteManagement.SiteRiskIndices.SiteRiskIndexController.CreateBulkRiskIndicesAsync 
 (Hon.IFS.SiteManagement.HttpApi). 
 
Actions require an explicit HttpMethod binding for Swagger/OpenAPI 3.0

Try adding [HttpPost] and [HttpGet] attributes to your methods.

namespace Hon.IFS.SiteManagement.SiteRiskIndices
{
    [RemoteService(Name = SiteManagementRemoteServiceConsts.RemoteServiceName)]
    [Area(SiteManagementRemoteServiceConsts.ModuleName)]
    [ControllerName("SiteRiskIndex")]
    [Route("api/site-management/site-risk-indices")]
    [ApiController]
    public class SiteRiskIndexController : ISiteRiskIndexAppService
    {
        protected ISiteRiskIndexAppService _siteRiskIndexAppService;

        public SiteRiskIndexController(ISiteRiskIndexAppService siteRiskIndexAppService)
        {
            _siteRiskIndexAppService = siteRiskIndexAppService;
        }
        
        [HttpPost]
        public async Task<List<RiskIndexDto>> CreateBulkRiskIndicesAsync(Guid siteId, List<Guid> buildingIds)
        {
            // Implementation logic for creating bulk risk indices
            // Replace the following line with actual implementation
            return await _siteRiskIndexAppService.CreateBulkRiskIndicesAsync( siteId, buildingIds);
        }

        [HttpGet]
        public async Task<List<RiskIndexDto>> GetListBySiteAndBuildingsAsync(Guid siteId, List<Guid> buildingIds)
        {
            // Implementation logic for retrieving risk indices by site and buildings
            // Replace the following line with actual implementation
            return await _siteRiskIndexAppService.GetListBySiteAndBuildingsAsync(siteId, buildingIds);
        }
    }
}

hi

Please share the logst.txt with liming.ma@volosoft.com

Thanks.

hi

In the module, there is an HttpApi layer.

You should add a new controller that implements the ISiteRiskIndexAppService and add Route attributes.

eg IdentityUserController and IIdentityUserAppService

https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/IdentityUserController.cs#L0-L1

Where did you add this new app service? In your app or a module?

Thanks.

Showing 131 to 140 of 10645 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20