Open Closed

abp generate-proxy only for sample entity #6077


User avatar
0
icoretchi created
  • ABP Framework version: v7.4.0

  • UI Type: Blazor WASM

  • Database System: EF Core (SQL Server)

  • Tiered (for MVC) or Auth Server Separated (for Angular): microservices

  • Exception message and full stack trace:

  • Steps to reproduce the issue:

  • cd into HttpApi.Client project

  • run abp generate-proxy -t csharp -url https://localhost:44990 -m AcquisitionService --without-contracts

As result the command generate client static proxies only for sample entity not all the time, but very often. Any suggestion?


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

    Hi,

    You can access https://localhost:44990/api/abp/api-definition endpoint to check the module name.

  • User Avatar
    0
    icoretchi created

    Hi,

    Thanks for giving me a clue. I've probably understood where the mistake could be. Just after your suggestion, I've noticed that when adding a new microservice to the solution, in the file with the constants in my case AcquisitionServiceRemoteServiceConsts from the Application.Contracts project, the variable with the name of the module is not added, that is, the following declaration is missing public const string ModuleName = "acquisitionService"; And for this reason, the controllers do not appear in the api definition, because each controller has the [Area("acquisitionService")] attribute. So please check the generation of the files in case of the addition of the microservice to the solution.

    Thanks Iulian

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35