REST access to Spring Config Server from non-spring application

时间:2017-06-12 16:48:58

标签: spring-boot spring-cloud-config

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.

1 个答案:

答案 0 :(得分:8)

official API doc托管在GitHub上。

我手动使用REST API进行测试。我发现this sample app很有用。

API资源

|  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")         |