📦 백엔드(NestJS) API 명세

📌 회원가입

요청 방식

**POST** /create-user

설명

새로운 사용자 정보를 데이터베이스에 저장하여 회원가입 처리.

요청 본문

{
  "email": "[email protected]",
  "nickname": "JohnDoe",
  "birthday": "1990-01-01",
  "gender": "male"
}

응답 본문

{
  "uid": 1,
  "email": "[email protected]",
  "nickname": "JohnDoe",
  "birthday": "1990-01-01",
  "gender": "male"
}
{
  "error": "Validation failed or email already exists."
}

📌 약 즐겨찾기 추가

요청 방식

**POST** /favorite-medicine

설명

사용자가 특정 약을 즐겨찾기에 추가하도록 처리.