ju-front / green-light

G-Order Tabling System
https://ju-front.github.io/green-light
1 stars 2 forks source link

CalculateNutrition api 구현 #38

Open kjeok00 opened 3 weeks ago

kjeok00 commented 3 weeks ago

Request CalculateNutrition Headers: Content-Type: application/json

Body예시: json

{
  "items": [
    { "name": "focaccia", "quantity": 2 },
    { "name": "gelato", "quantity": 1 },
    { "name": "panna_cotta", "quantity": 3 },
    { "name": "bruschetta", "quantity": 3 }
  ],
  "total": 26000
}

Response

Body: json

{
  "message": "Total nutrition calculated successfully",
  "totalNutrition": {
    "carbohydrate": 292,
    "protein": 38,
    "fat": 92,
    "sodium": 2950,
    "cholesterol": 95
  }
}

message는 예시로 추후 수정 예정입니다.