Open Closed

Hide API calls and models for Public Gateway #1980


User avatar
0
rick@i-pulse.nl created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index 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:"

Hi,

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)
  • User Avatar
    0
    cotur created

    Hi rick@i-pulse.nl,

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

    Why?

    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.

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