Browse Source

Merge pull request #13278 from abpframework/EngincanV/post-update

Update "swagger hide endpoints" article for built-in option
pull/13314/head
Engincan VESKE 4 years ago
committed by GitHub
parent
commit
c2f4f004c5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      docs/en/Community-Articles/2022-02-06-How-to-Hide-ABP-Related-Endpoints-on-Swagger-UI/POST.md

24
docs/en/Community-Articles/2022-02-06-How-to-Hide-ABP-Related-Endpoints-on-Swagger-UI/POST.md

@ -425,4 +425,26 @@ That's it. Now we can open the Setting Management page and enable/disable the sw
![](./swagger-hide-endpoints.gif)
Thanks for reading.
---
## July 2022 Update
With ABP v5.2+, there is a built-in option to hide/show ABP related endpoints on runtime. To hide ABP's default endpoints, call the `HideAbpEndpoints` method in your Swagger configuration as below:
```csharp
services.AddAbpSwaggerGen(
options =>
{
//... other options
//Hides ABP Related endpoints on Swagger UI
options.HideAbpEndpoints();
}
)
```
> For more info, please see the [Swagger Integration](https://docs.abp.io/en/abp/latest/API/Swagger-Integration#hide-abp-endpoints-on-swagger-ui) docs.
---
Thanks for reading.
Loading…
Cancel
Save