During startup, we need to do some adjustments for the application. We want to make REST API temporarily unavailable to be sure that there will be no concurrent updates. After adjustment is done, we would like to enable REST API and start serving requests. Is it possible to disable temporary REST API in Spring Boot?
- You might look into stackoverflow.com/questions/29958231/… or (togglz.org) if you would like to do this on demand.I_AM__PAUL– I_AM__PAUL2021-03-05 10:17:43 +00:00Commented Mar 5, 2021 at 10:17
- 1In this case, we would need to add @ConditionalOnExpression annotation to each REST endpoint and also it won't allow us to enable/disable them in runtime.Sydorov– Sydorov2021-03-05 10:29:01 +00:00Commented Mar 5, 2021 at 10:29
- Which deployment env do you use?FishingIsLife– FishingIsLife2021-03-07 21:23:24 +00:00Commented Mar 7, 2021 at 21:23
- Didn't get the question. I need it for all envsSydorov– Sydorov2021-03-08 16:43:39 +00:00Commented Mar 8, 2021 at 16:43
- @Sydorov found any thing ? searching for the same..!Bhanuchander Udhayakumar– Bhanuchander Udhayakumar2022-09-07 12:40:40 +00:00Commented Sep 7, 2022 at 12:40
Add a comment |