GET /config should return a JSON instead of a stringified YAML #7309
Replies: 3 comments
-
@hbagdi funny that you are asking it, as it looks like you implemented that in a first place: #4971 So do you consider this as a bug? |
Beta Was this translation helpful? Give feedback.
-
@hbagdi ah I see, you mean it is time to implement:
|
Beta Was this translation helpful? Give feedback.
-
Yeah, I tried attempting this myself before opening this issue but couldn't find a quick way to do it, and hence opened an issue. |
Beta Was this translation helpful? Give feedback.
-
Summary
GET /config
endpoint on the Admin API is primarily intended for debugging purposes to figure out the current running configuration of Kong.Currently, it returns a YAML encoded as a string in the response:
This is unreadable and difficult to parse correctly for large configurations.
The endpoint should instead return a JSON-encoded document instead.
An example:
The format of the response should conform to the format specification of declarative configuration of Kong (https://discuss.konghq.com/t/rfc-kong-native-declarative-config-format/2719).
Beta Was this translation helpful? Give feedback.
All reactions