Open Closed

Customizing Application Modules in Microservice Template #3167


User avatar
0
alirizaadiyahsi created
  • ABP Framework version: v5.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no, Microservice

Identity API

I am customizing Identity module according to this document: Customizing the Application Modules I extended IdentityRoles service/repository/contoller so I have a method _roleService.GetListByIds(Guid[] ids). Everything is ok, so far. The end-point is working like expected.

Identity Angular

Question: I am creating ng-library for my each microservice to generate proxies, separately (reference:Microservice Proxy Generation). To use my new method that is in IdentityRoleService, should I create an ng-library for identity and generate identity proxies in it? So, as I understand, I will use these proxies instead of using them from abp/ng.core?

Any suggestion would be appreciated! Thanks...


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can send an HTTP request to api/abp/api-definition endpoint to see the API definition.

    Usually, your own service module is named app, if so, you don't need to create a new ng-library otherwise you can create an ng-library for identity.

  • User Avatar
    0
    alirizaadiyahsi created

    Hi @liangshiwei, actually I am extending/overriding the end-point in identity-service microservice itself. And it is different then yours.

    But yes it doesn't matter. I got your your point. I just ask for better way. Using RestService can be solution. Now, I created a library for identity and generated proxies in it.

    I just have concerns about using it this way, if there are drawbacks.

  • User Avatar
    1
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    It seems good, no problem.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11