Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Swagger not show AbpController methods #3068


User avatar
0
ivanosw1 created

Hi, I have many modules that inherit from ApplicationService and Swagger shows all the methods correctly with parameters, dto and so on. I've added a new file in order to manage files upload, inheriting from AbpController; the methods works but aren't showed by Swagger . I've noted that also yours controller methods like UploadProfilePicture is not showed. There is some settings to view also the AbpController methods in Swagger ?

Thanks


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Do you use AspNet Mvc 5.x or AspNet Core ?

  • User Avatar
    0
    ivanosw1 created

    I use AspNet Core version 3.2.0.0

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you try to add route attribute to your controller like we did here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Core/Controllers/TokenAuthController.cs">https://github.com/aspnetzero/aspnet-ze ... troller.cs</a> ?

  • User Avatar
    0
    ivanosw1 created

    Great ismcagdas ! It works

    Thank you so much.