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

Serialize data as JSON with Accept: application/json #636

Merged
merged 1 commit into from Mar 17, 2019

Conversation

Ma27
Copy link
Member

@Ma27 Ma27 commented Feb 14, 2019

Similar to #607. According to the Catalyst[1] docs it's possible to
specify a data structure that is supposed to be serialized when
requesting i.e. a JSON response.

[1] https://metacpan.org/pod/Catalyst::Controller::REST#status_ok

Similar to NixOS#607. According to the Catalyst[1] docs it's possible to
specify a data structure that is supposed to be serialized when
requesting i.e. a JSON response.

[1] https://metacpan.org/pod/Catalyst::Controller::REST#status_ok
@grahamc
Copy link
Member

grahamc commented Mar 17, 2019

Tested via curl -H "Accept: application/json" https://hydra.nixos.org/machines, lgtm, thank you!

@grahamc grahamc merged commit 88a9225 into NixOS:master Mar 17, 2019
@Ma27 Ma27 deleted the serve-json-for-evals-and-machines branch March 17, 2019 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants