Skip to content

Add query and query_range as generic handlers forwarding all verbs #35

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

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

metalmatze
Copy link
Contributor

Next to adding the /api/v1/query_range endpoint too, the handlers are now simple handlers accepting every verb and then letting the downstream service decide on accepting or declining requests with specific verbs.

/cc @squat @kakkoyun @brancz

@cben
Copy link

cben commented Apr 23, 2020

(Background: clusters-service, which is one of the backends of OCM, is doing POST to /api/v1/query to avoid query length limits.
I don't think we're hitting them yet, but we're planning to send long _id=~"...|...|..." lists to query the clusters an OCM user is authorized for, so we're always sending POST.)

@metalmatze metalmatze merged commit 1f9458d into observatorium:master Apr 23, 2020
@metalmatze metalmatze deleted the legacy-endpoints-verbs branch April 23, 2020 10:19
@metalmatze
Copy link
Contributor Author

That's good insight to why a POST makes more sense than a GET. I was already wondering why you want POST :)

periklis pushed a commit to periklis/api that referenced this pull request Jul 9, 2021
environments: fix statefulset servicename
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