1. Overview

While creating Swagger documentation, we often need to hide endpoints from being exposed to end-users. The most common scenario to do so is when an endpoint is not ready yet. Also, we could have some private endpoints which we don’t want to expose.

In this short article, we’ll have a look at how we can hide endpoints from Swagger API documentation. To achieve this, we’ll be using annotations in our controller class.

#rest #spring #swagger

Hiding Endpoints From Swagger Documentation in Spring Boot
12.55 GEEK