목차
회원 기능
회원 등록
Request
URL
POST /api/v1.0/members
Host: localhost:8080
Parameter
Name |
Type |
Description |
Required |
memberEmail |
String |
회원 이메일 |
true |
memberPw |
String |
회원 비밀번호 |
true |
memberPhoneNumber |
String |
전화번호 |
true |
memberAddress |
String |
주소 |
true |
Example
POST http://localhost:8080/api/v1.0/members
{
"memberEmail": "[email protected]",
"memberPw": "gagi1004",
"memberPhoneNumber": "010-1234-5678",
"memberAddress": "가지동"
}
Response
200 OK
회원정보 조회(단건 조회)
Request
URL
GET /api/v1.0/members/{memberEmail}
Host: localhost:8080
Example
GET http://localhost:8080/api/v1.0/members/[email protected]
Response
200 OK
{
"memberEmail": "[email protected]",
"memberPw": "gagi1004",
"memberPhoneNumber": "010-1234-5678",
"memberAddress": "가지동"
}
회원정보 수정
Request
URL
PUT /api/v1.0/members/{memberEmail}
Host: localhost:8080
Parameter
Name |
Type |
Description |
Required |
memberEmail |
String |
회원 이메일 |
true |
memberPw |
String |
회원 비밀번호 |
true |
memberPhoneNumber |
String |
전화번호 |
true |
memberAddress |
String |
주소 |
true |
Example
PUT http://localhost:8080/api/v1.0/members/[email protected]
Response
200 OK
401 UNAUTHORIZED
회원정보 삭제
Request
URL
DELETE /api/v1.0/members/{memberEmail}
Host: localhost:8080
Example
DELETE http://localhost:8080/api/v1.0/members/[email protected]
Response
200 OK
401 UNAUTHORIZED
로그인 기능
로그인
Request
URL
POST /api/v1.0/members/login
Host: localhost:8080
Parameter
Name |
Type |
Description |
Required |
memberEmail |
String |
회원 이메일 |
true |
memberPw |
String |
회원 비밀번호 |
true |
Example
POST http://localhost:8080/api/v1.0/members/login
{
"memberEmail": "[email protected]",
"memberPw": "gagi1004"
}
Response
200 OK
401 UNAUTHORIZED
이메일 중복확인
Request
URL
GET /api/v1.0/members/duplicated/{memberEmail}
Host: localhost:8080
Example
GET http://localhost:8080/api/v1.0/members/duplicated/[email protected]
Response
200 OK
409 CONFLICT
로그아웃
Request
URL
GET /api/v1.0/members/logout
Host: localhost:8080
Example
GET http://localhost:8080/api/v1.0/members/logout
Response
200 OK
401 UNAUTHORIZED