-
Notifications
You must be signed in to change notification settings - Fork 1
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
Backend/feature/175 get comments endpoint #188
Conversation
# Conflicts: # backend/src/main/java/com/group1/cuisines/controllers/RecipeController.java # backend/src/main/java/com/group1/cuisines/services/RecipeService.java
I tested the endpoint but encountered an infinite recursion in the response, probably caused by mappings. Let me solve the problem before merging this. |
@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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
implement get /recipes/{recipeId}/comments