#14800 API design: POST request for "Run live query" endpoint#15508
Merged
noahtalerman merged 18 commits intomainfrom Jan 11, 2024
Merged
#14800 API design: POST request for "Run live query" endpoint#15508noahtalerman merged 18 commits intomainfrom
noahtalerman merged 18 commits intomainfrom
Conversation
fleet-release
approved these changes
Dec 7, 2023
fleet-release
previously approved these changes
Dec 7, 2023
rachaelshaw
commented
Dec 7, 2023
fleet-release
previously approved these changes
Dec 7, 2023
rachaelshaw
commented
Dec 7, 2023
rachaelshaw
commented
Dec 7, 2023
fleet-release
previously approved these changes
Dec 7, 2023
rachaelshaw
commented
Dec 8, 2023
rachaelshaw
commented
Dec 8, 2023
fleet-release
previously approved these changes
Dec 8, 2023
rachaelshaw
commented
Dec 8, 2023
|
|
||
| ### Run live query | ||
|
|
||
| > This updated API endpoint replaced `GET /api/v1/fleet/queries/run` in Fleet 4.x.x, for improved compatibility with many HTTP clients. The [deprecated endpoint](https://github.com/fleetdm/fleet/blob/fleet-v4.41.1/docs/REST%20API/rest-api.md#run-live-query) is maintained for backwards compatibility. |
Member
Author
There was a problem hiding this comment.
TODO: replace 4.x.x with actual release version when this is scheduled into a sprint
rachaelshaw
commented
Dec 8, 2023
fleet-release
previously approved these changes
Dec 8, 2023
rachaelshaw
commented
Dec 8, 2023
fleet-release
previously approved these changes
Dec 15, 2023
fleet-release
approved these changes
Dec 15, 2023
fleet-release
previously approved these changes
Dec 15, 2023
fleet-release
approved these changes
Dec 18, 2023
fleet-release
previously approved these changes
Dec 18, 2023
rachaelshaw
commented
Dec 19, 2023
rachaelshaw
commented
Dec 19, 2023
Co-authored-by: Rachael Shaw <r@rachael.wtf>
Member
|
Marked this PR as ready for review because #14800 was shipped 🎉 |
Co-authored-by: Rachael Shaw <r@rachael.wtf>
noahtalerman
approved these changes
Jan 11, 2024
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
"Run live query" API updates based on @jrzmurray's PR #13002, to resolve issue #14800.
Since we have an existing endpoint (the one used by the Fleet UI) at
POST /api/v1/fleet/queries/run, we aren't able to simply update the publicly-documented endpoint's method fromGETtoPOSTwithout a breaking change.Instead, this proposes the following API changes:
POST /api/v1/fleet/queries/:id/run. This becomes the publicly documented “Run live query” REST API endpoint. The differences are:POSTHTTP method instead ofGET.summaryandlive_query_results; the contents of both have been moved to the top level.