✔️유저 주소 입력하기 가져오기 - SOPT26th-iOS-DesignSeminar/Server GitHub Wiki
| 메소드 | 경로 | 설명 |
|---|---|---|
| POST | /users/signup | 본인주소 |
{
"Content-Type": "application/json"
}{
"location": "서울시 성북구 보문로"
"x":25
}- location: 사용자 주소
- x: 유저의 좌표(더미데이터)
{
"status": 200,
"success": true,
"data": {
"insertIdx": 1
}
}- 데이터 누락
{
"status": 400,
"success": false,
"message": "필요한 값이 없습니다."
}| 메소드 | 경로 | 설명 |
|---|---|---|
| GET | /users | 배달할 주소(본인주소) 가져오기 |
{
"status": 200,
"success": true,
"data": {
"result": [
{
"idx": 1,
"location": "행당동"
"x":25
},
{
"idx": 2,
"location": "신설동"
x":300
}
]
}
}