Open Closed

How to disable the API of the default module #1512


User avatar
0
deathmid2233@gmail.com created

ABP Framework version: v4.3 UI type: MVC DB provider: EF Core

How to disable the API controller of the default module?

I tried to comment part of the code But no effect

what should I do?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

8 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Do you want to hide them or remove/disable them?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    deathmid2233@gmail.com created

    Do you want to hide them or remove/disable them?

    i want disable them

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Disabling those controllers will break your project. None of the UI pages will work stable. Because javascript api calls won't work without these api's.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    deathmid2233@gmail.com created

    Disabling those controllers will break your project. None of the UI pages will work stable. Because javascript api calls won't work without these api's.

    Acme.BookStore.Web this is WEB project

    I created another WEB API project Acme.BookStore.WebAPI

    I just want to open the book api controller on Acme.BookStore.WebAPI

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Is Acme.BookStore.WebAPI dependent on Acme.BookStore.Web?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    deathmid2233@gmail.com created

    Is Acme.BookStore.WebAPI dependent on Acme.BookStore.Web?

    like this

    Same as Acme.BookStore.Web

    But does not rely on Acme.BookStore.Web

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    You need to create new a Application Layer and a HttpApi Layer as well. So, you can move Book Api related code to new projects and keep module-related api's in old projects. Then reference just new projects from Acme.BookStore.WebApi.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    deathmid2233@gmail.com created

    You need to create new a Application Layer and a HttpApi Layer as well. So, you can move Book Api related code to new projects and keep module-related api's in old projects. Then reference just new projects from Acme.BookStore.WebApi.

    I understand, thank you

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 09, 2026, 11:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.