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

Backend/feature/175 get comments endpoint #188

Merged
merged 6 commits into from
May 12, 2024

Conversation

boraykasap
Copy link
Contributor

implement get /recipes/{recipeId}/comments

# Conflicts:
#	backend/src/main/java/com/group1/cuisines/controllers/RecipeController.java
#	backend/src/main/java/com/group1/cuisines/services/RecipeService.java
@atakanyasar
Copy link
Contributor

I tested the endpoint but encountered an infinite recursion in the response, probably caused by mappings. Let me solve the problem before merging this.

@atakanyasar
Copy link
Contributor

@boraykasap, You need to return a CommentDto class in response to prevent recursion. You can implement like this. Also, It should not contain all details of the recipe.

@@ -5,7 +5,7 @@ jwt.signing.key=413F4428472B4B6250655368566D5970337336763979244226452948404D6351
spring.application.name=cuisines
spring.datasource.url=jdbc:mysql://localhost:3306/cuisines-test?createDatabaseIfNotExist=true
spring.datasource.username=root
spring.datasource.password=admin
spring.datasource.password=adminadmin
Copy link
Contributor

Choose a reason for hiding this comment

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

application.properties should not change in development branch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Taken into account and solved

@boraykasap boraykasap merged commit 32ec451 into develop May 12, 2024
5 checks passed
@atakanyasar atakanyasar deleted the backend/feature/175-get-comments-endpoint branch September 24, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: backend About backend priority: high High priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants