-
Notifications
You must be signed in to change notification settings - Fork 977
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Several improvements to RESTAPI interface #4001
This commit pack a couple of fixes and improvements for the RESTAPI: - Homogenization of GET/POST endpoint responses by ProxySQL. All responses should now be guaranteed to be valid JSON. - Fix JSON construction from parameters supplied to GET endpoint. - Add two new fields 'script_stdout' and 'script_stderr' to the JSON response when the target script fails to be executed. This is, when it exists with an error code other than zero. This makes the response homogeneous to when the scripts fails to produce a valid JSON output, and add extra information for debugging on client side. - Add a new debugging module 'PROXY_DEBUG_RESTAPI', to help tracing in debugging builds the requests to the endpoints.
- Loading branch information
Showing
3 changed files
with
128 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters