打开 关闭

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


User avatar
0
jeffbuot 创建
  • 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 答案
  • User Avatar
    0
    maliming 创建
    支持团队 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 创建
    支持团队 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 创建

    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 创建
    支持团队 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 创建

    Hi, Thanks I got it.

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