-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GET /recipes/{recieId} endpoint implemented.
- Loading branch information
1 parent
b16ce15
commit 6b04d5b
Showing
7 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
backend/src/main/java/com/group1/cuisines/dao/response/SuccessResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.group1.cuisines.dao.response; | ||
import lombok.*; | ||
@Data | ||
@AllArgsConstructor | ||
public class SuccessResponse <T>{ | ||
private T data; | ||
private String message; | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
backend/src/main/java/com/group1/cuisines/dto/AuthorDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.group1.cuisines.dto; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class AuthorDto { | ||
private Integer id; | ||
private String name; | ||
private String username; | ||
private Integer followersCount; | ||
private Integer recipesCount; | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
backend/src/main/java/com/group1/cuisines/dto/CuisineDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.group1.cuisines.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class CuisineDto { | ||
private String id; | ||
private String name; | ||
} |
10 changes: 10 additions & 0 deletions
10
backend/src/main/java/com/group1/cuisines/dto/DishDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.group1.cuisines.dto; | ||
import lombok.*; | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class DishDto { | ||
private String id; | ||
private String name; | ||
private String image; | ||
} |
29 changes: 29 additions & 0 deletions
29
backend/src/main/java/com/group1/cuisines/dto/RecipeDetailsDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.group1.cuisines.dto; | ||
|
||
import java.util.List; | ||
|
||
import com.group1.cuisines.entities.Ingredient; | ||
import lombok.*; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class RecipeDetailsDto { | ||
private Integer id; | ||
private String name; | ||
// private String description; | ||
private String instructions; | ||
private List<IngredientsDto> ingredients; | ||
//private List<String> images; | ||
private Integer cookTime; | ||
private Integer servingSize; | ||
// private List<String> allergens; | ||
private CuisineDto cuisine; | ||
private DishDto dish; | ||
private Double avgRating; | ||
|
||
private AuthorDto author; | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters