Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

REST access to Spring Config Server from non-spring application

Does anyone know if its possible to use configuration values from the spring config server via a REST interface. If so, is there any documentation on the interface? TIA.

like image 901
BillMan Avatar asked Jun 12 '17 16:06

BillMan


People also ask

Can I use spring cloud without spring boot?

We have implemented his proposed solution in production and it is working as expected. Our newer apps are being written using Boot, while our legacy apps use Spring, but not boot. We were able to use Spring Cloud Config to create a property service that serves properties for both. The changes were minimal.


1 Answers

The official API doc is hosted on GitHub.

I have used the REST API manually for testing purposes. I found this sample app to be useful.

API Resources

|  Path                               |  Description                                                        |
| ----------------------------------- | ------------------------------------------------------------------- |
|  /{app}/{profile}                   |  Configuration data for app in Spring profile (comma-separated).    |
|  /{app}/{profile}/{label}           |  Add a git label                                                    |
|  /{app}/{profiels}{label}/{path}    |  An environment-specific plain text config file (at "path")         |
like image 177
Pär Nilsson Avatar answered Oct 22 '22 09:10

Pär Nilsson