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

zpages: JSON support via Accept header #6722

Open
wperron opened this issue Feb 5, 2025 · 0 comments
Open

zpages: JSON support via Accept header #6722

wperron opened this issue Feb 5, 2025 · 0 comments
Labels
area: zpages Related to the zpages module enhancement New feature or request zpages

Comments

@wperron
Copy link

wperron commented Feb 5, 2025

Problem Statement

I want to be able to easily parse the response from the zpages extension to programatically inspect configuration.

Proposed Solution

Format the response in JSON if the Accept header is set to application/json.

Alternatives

I'm sure it's possible to parse the HTML, but it's cumbersome, whereas all languages support some form of JSON parsing.

Prior Art

Additional Context

@wperron wperron added area: zpages Related to the zpages module enhancement New feature or request zpages labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: zpages Related to the zpages module enhancement New feature or request zpages
Projects
None yet
Development

No branches or pull requests

1 participant