0
shridhar.mole created
Hello,
I am creating a new Application Service class derived from GrowthPlanServiceBase class but the public methods are not seen in Swagger UI page. The API Urls when called from Postman return 404 as well. This was working before as I have added new App Service classes in the past.
Can you please let me know if I am missing something?
Thanks in advance.
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
4 Answer(s)
-
0
Hi,
Could you share your app service and its interface definitions ?
Thanks,
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi,
Following are the App Service and Interface definitions
[AbpAuthorize(AppPermissions.Pages_Tenant_ManageBudgetVersions)] public class BudgetVersionsAppService : GrowthPlanServiceBase, IBudgetVersionsAppService { private readonly IRepository<BudgetVersion, long> _budgetVersionRepository; public BudgetVersionsAppService(IRepository<BudgetVersion, long> budgetVersionRepository) { _budgetVersionRepository = budgetVersionRepository; } [HttpPut] public async Task UpdateBudgetVersion([FromBody] BudgetVersionDto input, [FromQuery] string newName) { } public async Task<PagedResultDto<BudgetVersionDto>> GetBudgetVersions(GetBudgetVersionInput input) { } } public interface IBudgetVersionsAppService { public Task UpdateBudgetVersion(BudgetVersionDto input, string newName); public Task<PagedResultDto<BudgetVersionDto>> GetBudgetVersions(GetBudgetVersionInput input); }Thanks.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Please try this:
public interface IBudgetVersionsAppService : IApplicationService { public Task UpdateBudgetVersion(BudgetVersionDto input, string newName); public Task<PagedResultDto<BudgetVersionDto>> GetBudgetVersions(GetBudgetVersionInput input); }Kind regards, Rene
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @rvanwoezik
This change solved the issue. Thank you so much !
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)