Skip to content

Conversation

@cookie-meringue
Copy link
Owner

Issue: #25

- Encapsulate a collection of RestfulPattern and provide utility methods.
- Add static factory methods to create empty or from a collection.
- Implement `noneMatches` method to check if no patterns match the request.
- Provide `addAll` method to merge patterns from another RestfulPatterns.
- Implement `getPaths` method to retrieve a list of pattern paths.
- Set @SInCE to "Upcoming" for future release.
- Implement tests for RestfulPatterns class to validate functionality.
- Test empty creation with RestfulPatterns.empty().
- Verify noneMatches method with different HTTP requests.
- Test addAll method to merge patterns from another RestfulPatterns.
- Check getPaths method to retrieve pattern paths.
- Replace direct List<RestfulPattern> usage with RestfulPatterns class
- Simplify request matching logic by using noneMatches method from RestfulPatterns.
- Update shouldSkip method to use RestfulPatterns for pattern matching.
- Add addRestfulPatterns method to allow merging RestfulPatterns.
- Improve maintainability and readability by using RestfulPatterns as a first-class collection.
- Modify test logic to reflect changes in RestInterceptor using RestfulPatterns.
- Replace collection-based addRestfulPatterns() method with a version that uses RestfulPatterns.
- Streamline method to delegate to the `RestfulPatterns.from()` factory method for better readability and consistency.
- Ensure path patterns are updated accordingly through RestfulPatterns getPaths() method.
@cookie-meringue cookie-meringue self-assigned this Feb 14, 2025
@cookie-meringue cookie-meringue changed the title Refactor/encapsulate restful pattern #25 Encapsulate RestfulPattern Collections Using RestfulPatterns Feb 14, 2025
@github-actions
Copy link

Test Results

21 tests   21 ✅  0s ⏱️
 3 suites   0 💤
 3 files     0 ❌

Results for commit ac9acbd.

@cookie-meringue cookie-meringue merged commit 64aaf74 into main Feb 14, 2025
2 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