Great 👍
Thanks. I will check your logs.
hi
Can you share the full logs.txt of the authserver?
liming.ma@volosoft.com
Thanks
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.