Open Closed

Hide API calls and models for Public Gateway #1980

[email protected] created

Check the docs before asking a question: Check the samples, to see the basic tasks: The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v4.3.3
  • UI type: / MVC /
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"


We are using the microservices solution and have a product service with many API calls in the Host. At this moment all these calls are available in the Gateway and the Public Gateway. Also all the models used for the calls are available in Swagger.

We want some specific calls in the Public Gateway which can be used for the website and don't want to have all other calls in there. See the image below of what we have now and what we want.

All API calls and objects are generated, but can we split this without making a seperate PublicProduct module?

1 Answer(s)
  • 0
    cotur created
    Support Team

    Hi [email protected],

    You should create different http-api layer for public gateway.


    You cannot split one layer for different usages. So you may create a new layer for using in public gateway and add only which one you required.