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

Feature: Endpoint Categorization including method #39

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

stevenbunting
Copy link
Collaborator

Currently supergood endpoints are categorized using a regex pattern matched against a few options. However, for an endpoint that is queried using multiple methods (GET, POST, PATCH, etc) all these calls get conflated to the same endpoint.

There are some cases where this may be desired, but in general a POST and a GET to an endpoint should not be considered the same. This PR will now allow for an endpoint's method to be specified in the remote config. Calls must match both the regex and the endpoint method now to be considered a match.

Added unit test case, currently testing locally.

@stevenbunting stevenbunting merged commit 21c6eef into master Jul 24, 2024
6 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.

2 participants