[CHA-1427] add moderation routes #233
Merged
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.
Submit a pull request
CLA
Description of the pull request
Add Moderation V2 API Endpoints to Java SDK
Summary
This PR adds comprehensive support for all Moderation V2 API endpoints to the Java SDK, bringing it to feature parity with the Ruby SDK and aligning with the backend API routes defined in urlspatterns.go.
Previously, the Java SDK only had 3 moderation endpoints (getConfig, deleteConfig, upsertConfig). This PR adds 32 new endpoints, providing complete coverage of the Moderation V2 API.
What Changed
Files Modified
Endpoints Added
Core Moderation Actions (9 endpoints)
Additional V2 Endpoints (16 endpoints)
Feeds Moderation & Rules (7 endpoints)
Usage Examples
Flag a User
Mute Users
Query Review Queue
Check Content for Moderation
Get User Moderation Report
Implementation Details
Pattern Consistency: All endpoints follow the existing Java SDK patterns:
Lombok Annotations: Uses @builder, @Getter, @DaTa, @EqualsAndHashCode for clean, concise code
Type Safety: All endpoints use proper type annotations (@NotNull, @nullable)
Backward Compatibility: All changes are additive - no breaking changes to existing APIs
Testing