Open Closed

Question about Auto API Controller #7707


User avatar
0
castcrewit created
  • ABP Framework version: Abp Commerical Latest Version
  • UI Type: Angular
  • Database System: EF Core ( MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): Angular
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I am creating a module for my microservice. When I add a module to my micrioservice and run the swagger the Swagger shows the end points defined in the mdoule controller .httpapi project.

However i want to use my application service(.Application project) as my end points and show it in swagger instead of the picking form the controller. I was going through this article : https://abp.io/docs/latest/framework/api-development/auto-controllers however its asking to make changes to the WebModule which I don't have it. So where should I make this change and in which project so that the swagger starts picking up from the Application module instead of controller


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

    hi

    You shouldn't use Auto API Controllers in the microservice solution.

    You should use .httpapi of your module.

  • User Avatar
    0
    castcrewit created

    I think I was not clear about the requirement. I don't want to use the .httpapi of my module rather use the Auto API Controller in my module so that microservice picks up the API end points from the ApplicationModule instead of http.api

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You'd better do it the standard way, or you might have problems with microservices.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 19, 2024, 12:56