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

Implement Question Search Endpoint #555

Merged
merged 12 commits into from
Nov 23, 2024

Conversation

Cgtycolak
Copy link
Contributor

📋 Proposed Changes

  • Implemented GET search/questions endpoint.

Related Issue

Closes #529

@Cgtycolak Cgtycolak added type: enhancement New feature or request priority: medium Medium priority component: backend About backend labels Nov 23, 2024
@Cgtycolak Cgtycolak requested a review from EnesBaserr November 23, 2024 00:09
@Cgtycolak Cgtycolak self-assigned this Nov 23, 2024
private String title;
private DifficultyLevel difficulty;
private Long upvoteCount;
private Long downvoteCount;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

content field needed here.

@@ -75,4 +82,12 @@ public List<User> getFollowers(User user) {
return user.getFollowers().stream().toList();
}

public Page<User> searchUsers(String query, int page, int pageSize) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is corresponding endpoint ?

Copy link
Contributor

@EnesBaserr EnesBaserr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some changes are same with #552

Cgtycolak and others added 4 commits November 23, 2024 19:51
…ckend-implement-get-usersuseridfollowing-endpoint
…' into 529-backend-implement-question-search-endpoint
…into 529-backend-implement-question-search-endpoint

# Conflicts:
#	backend/src/main/java/com/group1/programminglanguagesforum/Controllers/QuestionController.java
#	backend/src/main/java/com/group1/programminglanguagesforum/Services/QuestionService.java
@EnesBaserr EnesBaserr force-pushed the 529-backend-implement-question-search-endpoint branch from dca13e0 to 71d5255 Compare November 23, 2024 18:41
…into 529-backend-implement-question-search-endpoint

# Conflicts:
#	backend/src/main/java/com/group1/programminglanguagesforum/Controllers/QuestionController.java
#	backend/src/main/java/com/group1/programminglanguagesforum/Services/QuestionService.java
…into 529-backend-implement-question-search-endpoint

# Conflicts:
#	backend/src/main/java/com/group1/programminglanguagesforum/Controllers/QuestionController.java
#	backend/src/main/java/com/group1/programminglanguagesforum/Services/QuestionService.java
@EnesBaserr EnesBaserr merged commit 294f0de into develop Nov 23, 2024
1 check passed
@EnesBaserr EnesBaserr deleted the 529-backend-implement-question-search-endpoint branch November 23, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: backend About backend priority: medium Medium priority type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants