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

Support json content type #33

Open
danielemery opened this issue Aug 1, 2024 · 0 comments
Open

Support json content type #33

danielemery opened this issue Aug 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@danielemery
Copy link
Owner

Currently the main keys endpoint returns keys in a format that is suitable for use in an authorized_keys file without any parsing or modification.
This is a key features of the keys project and should be kept as the default behaviour.

However if the caller requests content-type: json they should instead receive the keys is json format. This is far more convenient to use programatically (eg by the cli in #24) and can provide all the metadata associated with they keys (eg tags).

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