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: Added custom repository functions in NewsletterRepository and endpoints #702

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

tachtwitch
Copy link
Contributor

PR Description

This PR resolves the incorrect configuration of the NewsletterRepository interface and implements CRUD features, including retrieving newsletters by user ID, retrieving newsletters created after a specified date, and deleting newsletters by user ID.

Bug fixes:

*Resolved incorrect configuration of NewsletterRepository interface

##New features:

  • Implemented CRUD features for NewsletterRepository interface
  • Added content and title fields to @Entity newsletter
  • Added unit tests for NewsletterRepository methods

Expected Behavior

The NewsletterRepository should correctly perform CRUD operations using the defined @Query annotations.

getNewslettersByUserId Endpoint

postman

getNewslettersAfterDate Endpoint

posttman2

Testing

Test 1: Retrieve newsletters by user ID

  • Unit test: passed

Test 2: Retrieve newsletters created after a specified date

  • Unit test: passed

Test 3: Delete newsletter by user ID

  • Unit test: passed

@tachtwitch tachtwitch closed this Mar 2, 2025
@tachtwitch tachtwitch reopened this Mar 2, 2025
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.

1 participant