Open kjeok00 opened 3 weeks ago
SignUp: Endpoint: api/signUp
Method: POST
Description: 사용자를 등록하고, 가장 최근 영수증의 total_price 값을 10000으로 나눈 값을 coupon으로 설정합니다.
Request Body:
json:
{
"userID": "string",
"allergyData": {
"gluten": "boolean",
"dairy": "boolean",
"egg": "boolean",
"shellfish": "boolean",
"nut": "boolean",
"soy": "boolean",
"fish": "boolean",
"celery": "boolean",
"mustard": "boolean"
}
}
userID: 사용자가 입력한 ID 문자열.
allergyData: 사용자의 알러지 정보.
Response:
json:
{
"message": "User signed up and coupon set successfully",
"coupon": "integer"
}
작성된 message는 수정 예정
const SignUp = (userID, allergyData, receiptID) =>
request
response