Activities of "maliming"

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.

hi

Can you remove the abstract keyword?

public class SiteRiskIndexAppService :

hi

The cmskit page will use the ABP layout from the theme module.

You can override the layout to add your custom meta elements. Get the current page info by Slug to determine your logic.

hi

Why did you add the MyDynamicResourceLocalizer?

What is its purpose?

Thanks.

hi

Is your problem solved?

Attached is the video for reference

Where is the video?

Thanks.

The issue arises because your application service inherits a generic interface, which the default service cannot recognize.

Showing 1051 to 1060 of 11567 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.1.0-preview. Updated on December 25, 2025, 06:16
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.