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

Swagger - Hide Service #4532


User avatar
0
pankajmathur created

Hi,

We have a requirement to not display all services and service methods that I have in my application. I found a setting on internet that decorating the service class with the following attribute hides the complete service and decorating the service class method with the same attribute hides the service method.

[ApiExplorerSettings(IgnoreApi = true)]

after decorating with above attribute thought its not showing in the Swagger (as desired), but it fails my application.

What is failing:

From the javascript the follwoing code (which works well without decorating with above attribute) always returns undefined (after decorating with above attribute)

var _Service = abp.services.app.goodsReceipt;

Please help, how to hide service and/or service methods from swagger.

Regards, Mahendra


1 Answer(s)