Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a handler to show the full information about the current config #21

Open
mativm02 opened this issue Oct 24, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@mativm02
Copy link
Collaborator

mativm02 commented Oct 24, 2023

We need a handler to show the full information about the current config of a component. It would behave in a similar way as /config?field= does but without the need for filtering by fields. For example:

{
    "ListenPort": {
        "config_field": "listen_port",
        "env": "APP_LISTENPORT",
        "value": 8000,
        "comment": "ListenPort is the port where the server will run",
        "obfuscated": false
    },
    "LogFile": {
        "config_field": "log_file",
        "env": "APP_LOGFILE",
        "value": "./config.go",
        "comment": "",
        "obfuscated": false
    },
}

The key of each JSON object would be the name of the field within the JSON struct

@mativm02 mativm02 added the enhancement New feature or request label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant