Open Closed

Custome definitions provider like permission definitions and setting definitions. #3294


0
imranStem created

I want to create the custom definition provider as per our project requirement. I have a microservice architecture and I have one module to register the services from different microservices. I have checked the SettingDefinitionProvider, and PermissionDefinitionProvider, the same way, I want to create the ServiceDefinationProvider with the group name and key value so I can register the definitions in all microservices and can use the Key to identify the registered service. Is there any way to create the custom definition provider and get all the definitions through the api-definitions endpoint?

  • ABP Framework version: v5.2.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

4 Answer(s)
  • 0
    berkansasmaz created
    Support Team

    Hello, thanks for your detailed problem description, after some research I saw that you cannot extend the api-definitions end-point. Because ApplicationConfigurationDto is not an extensible object.

    But I will talk to the team to see if there are other ways you can do this.

    References

    1. https://github.com/abpframework/abp/blob/b6718cbd84d17d4b3d71fb0a30c1aa8530cdda47/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationConfigurations/AbpApplicationConfigurationAppService.cs#L81
    2. https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Mvc.Contracts/Volo/Abp/AspNetCore/Mvc/ApplicationConfigurations/ApplicationConfigurationDto.cs
  • 0
    maliming created
    Support Team

    hi

    We will make ApplicationConfigurationDto extensible and provide corresponding code in the next version.

  • 0
    maliming created
    Support Team

    https://github.com/abpframework/abp/pull/13100/

  • 0
    berkansasmaz created
    Support Team

    Thanks for the PR @maliming.

    I merged the relevant pull request, it will be available in the next version.

    Thanks for the enhancement request @imranStem.


    Closing the issue. Feel free to re-open, if you have any further questions on this topic.