Skip to content

Conversation

@Wafffle77
Copy link
Collaborator

Allows the boot script endpoint to output JSON instead of an iPXE script if the "json" query parameter has a non-zero value.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the getIntParam piece. Can we use content negotiation with an Accept header to identify what format to send the response in?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my initial idea, but I elected to use a query parameter since the code was already there to support it, and it makes it usable with tools that don't support supplying an "Accept" header.

Copy link
Member

@alexlovelltroy alexlovelltroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexlovelltroy alexlovelltroy merged commit 8a9a017 into main Jun 2, 2025
4 checks passed
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.

3 participants