λ©μλ |
κ²½λ‘ |
μ€λͺ
|
POST |
/user/signin |
λ‘κ·ΈμΈ |
Request Header
{
"Content-Type": "application/json"
}
{
"id": "aaa",
"password": "sopt"
}
- id : μ¬μ©μ μμ΄λ
- password : μ¬μ©μ λΉλ°λ²νΈ
{
"status": 200,
"success": true,
"message": "λ‘κ·ΈμΈ μ±κ³΅",
"data": {
"jwt":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjEsIm5hbWUiOiJnbmdzbiIsImlhdCI6MTU4ODU5NjEwOH0.ZvAXsth9RgtwvJRXdjuO3XC6A7uyeFNefhNxi2ok6R4"
}
}
{
"status": 400,
"success": false,
"message": "λΉλ°λ²νΈκ° μΌμΉνμ§ μμ΅λλ€"
}
- μ‘΄μ¬νμ§ μλ μμ΄λ
{
"status": 200,
"success": false,
"message": "μ‘΄μ¬νμ§ μλ μ μ μ
λλ€."
}
{
"status": 400,
"success": false,
"message": "νμν κ°μ΄ μμ΅λλ€. password"
}
λ©μλ |
κ²½λ‘ |
μ€λͺ
|
POST |
/user/signup |
νμκ°μ
|
Request Header
{
"Content-Type": "application/json"
}
{
"id": "aaa",
"password": "sopt",
"name": "sopt26",
"email": "[email protected]",
"phone": "000-0000-0000",
"address": "μμΈμ μ±λΆκ΅¬ 보문λ‘"
}
- id : μ¬μ©μ μμ΄λ
- password : μ¬μ©μ λΉλ°λ²νΈ
- name : μ¬μ©μ μ΄λ¦
- email : μ¬μ©μ μ΄λ©μΌ
- phone : μ¬μ©μ νΈλν° λ²νΈ
- address: μ¬μ©μ μ£Όμ
{
"status": 204,
"success": true,
"message": "νμκ°μ
μ±κ³΅"
}
{
"status": 200,
"success": false,
"message": "μ‘΄μ¬νλ ID μ
λλ€."
}
{
"status": 400,
"success": false,
"message": "νμν κ°μ΄ μμ΅λλ€. address"
}