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

feat: rules-based automatic parameterisation from pathnames #14

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

AndrewWalsh
Copy link
Owner

There are multiple ways to automatically parameterise pathnames. This is one approach, and generally the fastest, a set of functions each accept the pathname of an incoming request and determine which parts are parameters. At present, only UUIDs are identified. Other approaches might include custom regex strings, or custom function logic.

  • Ability to automatically identify path parameters from a set of rules
  • Designed to be used in conjunction with more computationally expensive methods
  • Rules are functions. New functions can be added to identify path parameters from string patterns
  • The only current rule is that UUIDs in pathnames will be parameterised

There are multiple ways to automatically parameterise pathnames. This is one approach, and generally the fastest, a set of functions each accept the pathname of an incoming request and determine which parts are parameters. At present, only UUIDs are identified. Other approaches might include custom regex strings, or custom function logic.

- Ability to automatically identify path parameters from a set of rules
- Designed to be used in conjunction with more computationally expensive methods
- Rules are functions. New functions can be added to identify path parameters from string patterns
- The only current rule is that UUIDs in pathnames will be parameterised
@AndrewWalsh AndrewWalsh merged commit 7469d8d into main Mar 1, 2024
@AndrewWalsh AndrewWalsh deleted the automatic-parameterisation branch March 1, 2024 10:26
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.

None yet

1 participant