I am using swagger UI for my APIs which are pointed to mongo database-1, where I am able to access all the data from my database-1 But I want my swagger UI to access mongo database-2 as I want only authorized people to access my data from database-1, anyone else can access data from database-2
In a nutshell, my swagger UI is open to all, I just want to restrict the access
Authorized will access database-1
Unauthorized will access database-2
I went through some documentations but I don't found them useful,
I am not sure this is even possible, but if it is please help