Question: Spring Cloud Config Server accepts multiple profile and returns the properties for all the profiles when I access the /env endpoint of the application. The response lists the properties specific to each profile. If same property is present in 2 different property files , the one that is defined last takes precedence. Is there a way to get the final list of property key and values that will be used by the application?

Answer: 
**For Cloud Config Client Application**

I've tried different ways and found the following (accidentally):

`GET /env/.*` returns full list of configuration properties

**For Cloud Config Server Application**

It turns out this is already implemented, but not documented well. All you need is to request `json`, `yml` or `properties` according to the patterns:

```
/{application}-{profile}.{ext}
/{label}/{application}-{profile}.{ext}

```
This seems to be an intentional limitation of the Spring Framework.

See [here](https://jira.spring.io/browse/SPR-10241 "here")

You could hack it and inject the PropertySources interface, then loop over all the individual PropertySource objects, but you'd have to know what properties you're looking for.