Open Closed

How to re-generate client proxies in a *.HttpApi.Client project based from app service changes? #3405


User avatar
0
jeffbuot created
  • ABP Framework version: v5.3.0
  • Project type: Abp Microservice Template
  • DB provider: MongoDB

I have updated logic/filtering data of getting products on the appservice and on the repository (GetListAsync). I am using the client proxy in a wpf but it seems not updated. Is there any way to re-generate the generated code in the HttpApi.Client client proxies? or I'll just need to manually update the source code of the generated client proxy?


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Just re-run the abp generate-proxy command.

    https://docs.abp.io/en/abp/latest/API/Static-CSharp-API-Clients#code-generation

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    If you haven't changed the method signature(method name, parameter, return type.. ) and route, then you don't need to regenerate.

    However, you can run the abp generate command to re-generate client proxies.

  • User Avatar
    0
    jeffbuot created

    Hi, Thanks for the response, I'm getting Module name: app is invalid executing it inside my wpf root folder or on the host folder. There's no update after executing abp generate-proxy -t csharp -u https://localhost:44361/.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    abp generate-proxy -t csharp -u https://localhost:44361/ -m YourModuleName

    You can get the modules on https://YourWebsite/api/abp/api-definition

    eg https://abp.io//api/abp/api-definition

  • User Avatar
    0
    jeffbuot created

    Hi, Thanks I got it.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15