영양소

음식 영양소 생성 (중량 → 칼로리, 탄수화물, 단백질, 지방)

HTTP 메서드 POST
요청 URL https://port-0-ref-server-1mrfs72llwxvw3wk.sel5.cloudtype.app/nutrients

Request body

{
    "name": "쿠키",
    "weight": "2봉지",
    "isFreezed": false,
    "up_date": "24-05-17",
    "expiration_date": "24-06-30"
}

Response

{
    "name": "쿠키",
    "weight": "2봉지",
    "isFreezed": false,
    "up_date": "24-05-17",
    "expiration_date": "24-06-30",
    "nutrients": {
        "calories": 400,
        "carbohydrates": 6.0,
        "protein": 4.0,
        "fat": 1.8
    }
}

레시피

가능 레시피 추천 (레시피 리스트 → 아침, 점심, 저녁 - 포함 재료, 조리 방법)

HTTP 메서드 POST
요청 URL https://port-0-ref-server-1mrfs72llwxvw3wk.sel5.cloudtype.app/recipes

Request body

[
  {
    "name": "당근",
    "weight": "100g",
    "isFreezed": false,
    "up_date": "24-05-30",
    "expiration_date": "24-06-30",
    "nutrients": {
        "calories": 400,
        "carbohydrates": 5.0,
        "protein": 5.0,
        "fat": 2.0
    }
  },
  {
    "name": "양파",
    "weight": "100g",
    "isFreezed": false,
    "up_date": "24-05-30",
    "expiration_date": "24-06-30",
    "nutrients": {
        "calories": 400,
        "carbohydrates": 5.0,
        "protein": 5.0,
        "fat": 2.0
    }
  },
  {
    "name": "마늘",
    "weight": "50g",
    "isFreezed": false,
    "up_date": "24-05-30",
    "expiration_date": "24-06-30",
    "nutrients": {
        "calories": 400,
        "carbohydrates": 5.0,
        "protein": 5.0,
        "fat": 2.0
    }
  },
  {
    "name": "소고기",
    "weight": "600g",
    "isFreezed": false,
    "up_date": "24-05-30",
    "expiration_date": "24-06-30",
    "nutrients": {
        "calories": 400,
        "carbohydrates": 5.0,
        "protein": 5.0,
        "fat": 2.0
    }
  },
  {
    "name": "간장",
    "weight": "50ml",
    "isFreezed": false,
    "up_date": "24-05-30",
    "expiration_date": "24-06-30",
    "nutrients": {
        "calories": 400,
        "carbohydrates": 5.0,
        "protein": 5.0,
        "fat": 2.0
    }
  }
]

Response

{
    "breakfast": {
        "name": "당근 주스",
        "ingredients": [
            "당근",
            "양파",
            "물"
        ],
        "detailed_instructions": "1. 당근과 양파를 깨끗이 씻어서 잘게 썰어주세요.\\n2. 믹서기에 당근, 양파, 물을 넣고 곱게 갈아주세요.\\n3. 각인을 이용해 주스를 짜거나 체에 걸러주세요.\\n4. 시원한 당근 주스가 완성되었습니다."
    },
    "lunch": {
        "name": "소고기 볶음",
        "ingredients": [
            "소고기",
            "양파",
            "마늘",
            "간장",
            "설탕",
            "식용유"
        ],
        "detailed_instructions": "1. 소고기를 얇게 썰어주세요.\\n2. 양파와 마늘을 다져주세요.\\n3. 팬에 식용유를 두르고 마늘을 볶아 향을 낸 후 소고기를 넣어 볶아주세요.\\n4. 소고기가 익으면 양파를 넣고 함께 볶아주세요.\\n5. 간장과 설탕을 넣고 간을 맞춰주세요.\\n6. 소고기 볶음이 완성되었습니다."
    },
    "dinner": {
        "name": "양파 스프",
        "ingredients": [
            "양파",
            "마늘",
            "물",
            "소금",
            "후추",
            "크림"
        ],
        "detailed_instructions": "1. 양파와 마늘을 다져주세요.\\n2. 냄비에 식용유를 두르고 마늘을 볶아 향을 낸 후 양파를 넣어 볶아주세요.\\n3. 물을 부어 끓여주세요.\\n4. 소금과 후추로 간을 맞춰주세요.\\n5. 크림을 넣고 끓여 부드럽게 만들어주세요.\\n6. 양파 스프가 완성되었습니다."
    }
}