레시피 유형
메소드 |
경로 |
짧은 설명 |
GET |
recipe/list/:recipe_id |
레시피 조회 |
요청 헤더
Content-Type: application/json
token: access-token // 로그인 시 받은 token을 넣어주세요..
요청 바디
참고사항
응답 바디
좋아요로 상태 변경 성공
{
"status": 200,
"success": true,
"message": "레시피 조회 성공",
"data": [
{
"receipe_img": "https://mysidebucket.s3.ap-northeast-2.amazonaws.com/1648558026313.png",
"receipe_name": "만들기 쉬운 시금치 파스타!",
"receipe_foodtype": "양식",
"receipe_difficulty": 1,
"receipe_time": 10,
"receipe_volume": 100,
"receipe_content": "시금치 파스타는 몸에도 좋고 맛도 좋아요 ^^ 애들도 좋아해요 ㅎ",
"receipe_caution": "뜨거워요 조심하세요!",
"receipe_likesum": 0,
"receipe_sharesum": "",
"receipe_savesum": "",
"receipe_commentsum": "",
"link":"",
"link_comment":"",
"name": "테스트",
"cancerNm": "위암",
"progressNm": "항암중",
"step": [
{
"step_num": 1,
"step_content": "첫번째 단계",
"step_img": "https://mysidebucket.s3.ap-northeast-2.amazonaws.com/1648558026311.png"
},
{
"step_num": 2,
"step_content": "두번째 단계",
"step_img": "https://mysidebucket.s3.ap-northeast-2.amazonaws.com/1648558026312.png"
}
],
"main_ingredient": [
{
"ingredient_content": "새우(꽃새우)",
"ingredient_type": "기본재료",
"volume": "3개",
"sungbun": [
{
"cancerNm": "갑상선암",
"nutrition1": "요오드",
"nutrition2": "아연",
"nutrition3": "칼슘",
"nutrition4": "단백질",
"wishes": 0,
"likes": 0
}
]
}
],
"sub_ingredient": [
{
"content": "마늘",
"type": "소스재료",
"volume": "3개",
"sungbun": [
{
"cancerNm": "위암,간암,대장암",
"nutrition1": "셀레늄",
"nutrition2": "알리신",
"nutrition3": "핵산",
"nutrition4": "비타민B",
"wishes": 39,
"likes": 69
}
]
},
{
"content": "양파",
"type": "기본재료",
"volume": "200g",
"sungbun": [
{
"cancerNm": "항암",
"nutrition1": "단백질",
"nutrition2": "탄수화물",
"nutrition3": "비타민C",
"nutrition4": "칼슘",
"wishes": 0,
"likes": 0
}
]
}
],
"similar_recipe": [
{
"receipe_id": "1",
"receipe_name": "보현이의 첫번째 요리",
"receipe_img": "https://mysidebucket.s3.ap-northeast-2.amazonaws.com/1648558026313.png",
"receipe_difficulty": "5",
"receipe_time": "30",
"receipe_user_id": "1",
"user_name": "newname",
"user_cancerNm": "위암",
"user_stageNm": "2기",
"user_progressNm": "수술전"
}
]
}
]
}
실패
{
"status": 500,
"success": false,
"message": "DB 오류"
}