분기를 위해서 /be
붙여준다.
Description | URL (endpoints) | Method | Body | Payload | 상태 | ps |
---|---|---|---|---|---|---|
회원가입 | /customer/signup | POST | { | |||
customer_id, customer_pw, | ||||||
customer_name, | ||||||
customer_nickname, customer_address, customer_phone | ||||||
} | return | |||||
{ | ||||||
key | ||||||
} | 구현 완료 | |||||
아이디 중복 검사 | /customer/idcheck/:customer_no | GET | return | |||
{ | ||||||
check | ||||||
} | 구현 완료 | 중복이 안되면 true, 중복이면 false | ||||
첫화면-로그인 | /customer/login | POST | { | |||
username, | ||||||
password | ||||||
} | return | |||||
{ | ||||||
customerNo | ||||||
} | 구현 완료 | 로그인 하고 Payload에 판매자인지 소비자인지 상태값이 필요해보임(!!!!) | ||||
비밀번호 변경 | /customer/change_pwd/:customer_no | PUT | { | |||
password, | ||||||
passwordUpdate | ||||||
} | 구현 완료 | 현재비밀번호를 비교한 후 맞은 경우 새 비밀번호를 업데이트 ( 비밀번호 입력, 비밀번호 확인이 불일치한 경우 프론트단에서만 해결? →보류) | ||||
회원정보 조회 - 개인정보 | /customer/:customer_no | GET | { | |||
customer_id, | ||||||
customer_name, | ||||||
customer_nickname, customer_address, customer_phone | ||||||
} | 구현 완료 | |||||
회원정보 조회 - 찜목록 | /customer/:customer_no/interstore | GET | [ | |||
{ |
store_no,
store_name,
storeIdx
} ] | 구현 완료 | | | 회원정보 수정 | /customer/:customer_no | PUT | { customer_name, customer_nickname, customer_address, customer_phone } | | 구현 완료 | | | 계정삭제 | /customer/:customer_no | POST | { customer_pwd } | | | | | 찜 목록 등록 | /customer/:customer_no/interstore | POST | { store_no } | return { check } | 구현 완료 | true 반환: 등록, false 반환: 삭제 | | 로그아웃 | /logouts | POST | { accessToken, refreshToken } | | 구현 완료 | 소비자, 판매자 공통 | | accessToken 재발급 | /re-issue/customer/{customer_no} | POST | { refreshToken } | | 구현 완료 | accessToken 쿠키 생성 | | accessToken 유효성 검사 | /auth | POST | { accessToken } | | 구현 완료 | true 반환: 유효O, false 반환: 유효X 모든 로그인시에만 접근 가능한 페이지에서는 해당 api를 통해 accessToken의 유효성을 검사한다. 소비자, 판매자 공통 |
Description | URL (endpoints) | Method | Body | Payload | 상태 | ps |
---|---|---|---|---|---|---|
회원가입 | /seller/signup | POST | { | |||
business_number, | ||||||
seller_id, | ||||||
seller_pw | ||||||
seller_name, | ||||||
seller_phone | ||||||
} | return | |||||
{ | ||||||
key | ||||||
} | 구현 완료 | |||||
아이디 중복 검사 | /seller/idcheck/:seller_id | GET | { | |||
check | ||||||
} | 구현 완료 | 중복이 안되면 true, 중복이면 false | ||||
첫화면-로그인 | /seller/login | POST | { | |||
username, | ||||||
password | ||||||
} | return | |||||
{ | ||||||
sellerNo | ||||||
} | 구현 완료 | |||||
회원정보 조회 | /seller/:seller_no | GET | { | |||
business_number, | ||||||
seller_name, | ||||||
seller_phone | ||||||
} | 구현 완료 | idCheck: 중복이 안되면 true, 중복이면 false | ||||
sellerData: 해당 아이디가 없으면(idCheck: true) null 값 반환 | ||||||
회원정보 수정 | /seller/:seller_no | PUT | { | |||
business_number, | ||||||
seller_name, | ||||||
seller_phone | ||||||
} | 구현 완료 | |||||
비밀번호 변경 | /seller/change_pwd/:seller_no | PUT | { | |||
password, | ||||||
passwordUpdate | ||||||
} | 구현 완료 | |||||
계정삭제 | /seller/:seller_no | DELETE | { | |||
seller_pwd | ||||||
} | ||||||
사업자등록번호 중복 검사 | /seller/business_number/:business_number | GET | { | |||
check | ||||||
} | 구현 완료 | 중복이 안되면 true, 중복이면 false | ||||
accessToken 재발급 | /re-issue/seller/{seller_no} | POST | { | |||
refreshToken | ||||||
} | 구현 완료 | accessToken 쿠키 생성 |
Description | URL (endpoints) | Method | Body | Payload | 상태 | ps |
---|---|---|---|---|---|---|
시,도 목록 조회 | ||||||
(시장검색- 소비자) | /sido | GET | return | |||
[ | ||||||
{ |
sidoCode,
sidoName
}, ] | 구현 완료 | 시,도 코드는 전체 코드의 첫 두 글자만 반환 | | 구, 군 목록 조회 (시장검색 - 소비자) | /gugun/:sidocode | GET | | return [ { sidoGugun, sidoName, gugunName }, ] | 구현 완료 | 시,도 목록에서 받은 시도 코드 두 글자로 조회. left(sido_name,2)으로 조회 | | 주소로 시장 검색 - 소비자 | /market/addr/:sidogugun | GET | | return [ { marketNo, marketName, marketAddr, lat, lng }, ] | 구현 완료 | sido_name + gugun_name을 합쳐서 검색 (ex. 서울특별시 강남구) | | 이름으로 시장 검색 - 소비자 | /market/name/:marketname | GET | | return [ { marketNo, marketName, marketAddr, lat, lng }, ] | 구현 완료 | 해당 이름이 들어있는 시장 목록 조회 | | 시장번호로 시장 검색 | /market/no/:marketno | GET | | return { marketNo, marketName, marketAddr, lat, lng } | 구현 완료 | 시장번호에 해당하는 시장 정보 반환 |
Description | URL (endpoints) | Method | Body | Payload | 상태 | ps | |
---|---|---|---|---|---|---|---|
상점목록 전체 조회 | /store | GET | {{ | ||||
store_name, | |||||||
store_category, | |||||||
store_phone, | |||||||
store_addr, | |||||||
seller_no, | |||||||
market_no, | |||||||
store_img | |||||||
}} | 불필요판단.. | 리스트 형대로 전체 출력 | |||||
상점목록(시장번호로 조회) | /store/market/:marketNo | GET | return storeList | 구현완료 | *찜 정보 추가 요청 | ||
상점목록(판매자번호로) | /store/seller/:sellerNo | GET | Store 객체 | 구현완료 | |||
상점정보조회(상점번호로 ) | /store/:storeNo | GET | 구현완료 | ||||
상점 등록 | /store | POST | { | ||||
store_name, | |||||||
store_category, | |||||||
store_phone, | |||||||
store_addr, | |||||||
seller_no, | |||||||
market_no, | |||||||
store_img | |||||||
} | 구현 완료 | 디폴트이미지경로 만들어서 널로 들어오면 기본 이미지 뜰 수 있게 … 서버에서 보내주길. | |||||
상점 사진 불러오기 | /store/image/:store_no | GET | {imgUrl} | 구현완료 | |||
상점사진 수정 | /store/image | POST | {storeNo,file} | 구현완료 | S3에 사진 올리고 그 전거 지운다. | ||
상점 사진 삭제 | /store/image/:store_no | DELETE | {imgUrl} | 구현완료 | S3에 있는 파일을 삭제하고 기본사진 보내준다. | ||
상점 정보 수정 | /store/:store_no | PATCH | {store_name, | ||||
store_category, | |||||||
store_phone, | |||||||
store_addr, | |||||||
seller_no, | |||||||
market_no, | |||||||
store_img} | return { | ||||||
1: “ 성공적으로 수정되었습니다.” | |||||||
0 : “수정이 실패했습니다. 다시 시도해주세요.” | |||||||
} | 구현 완료 | PUT→PATCH로 수정 | |||||
상점 정보 삭제 | /store/:store_no | DELETE | 구현완료 | ||||
방 정보 조회 | /store/room/:store_no | GET | return{ | ||||
store_subject, | |||||||
store_intro, | |||||||
store_img, | |||||||
item_no | |||||||
} | 구현완료 | item_no 리스트 형태 | *찜 정보 추가 요청 | ||||
방 정보 수정 | |||||||
(상점 소개, 방 제목, 상점 이미지) | /store/room/:store_no | PATCH | { | ||||
store_intro, | |||||||
store_subject, | |||||||
item_no | |||||||
} | 구현완료 | item_no에 해당하는 컬럼의 recent(최근 판매 유무)를 1으로 변경 | |||||
-item_no 리스트 형태 | |||||||
나머지는 0으로 초기화 | |||||||
아이템 등록 | /item/:store_no | POST | { | ||||
item_name, | |||||||
price | |||||||
} | 구현완료 | recent컬럼의 default값은 0으로 설정 | |||||
아이템수정 | /item/:item_no | PATCH | { | ||||
item_no | |||||||
item_name, | |||||||
price | |||||||
} | 구현완료 | 수정안하고 차라리 편하게 삭제/등록이 나을 것 같다. | |||||
최근사용여부체크 | /item/check/:item_no | PATCH | { | ||||
item_no, | |||||||
recent} | 구현완료 | 요청이 들어올때마다 recent값 바꿔준다. | |||||
아이템삭제 | /item/:item_no | DELETE | 구현완료 | return값 필요! - return값없으면 실행확인 불가 | |||
아이템 목록 조회 | |||||||
(라이브 상점) | /item/:store_no | GET | return | ||||
[ { | |||||||
item_no, item_name |
price
recent
}
] | 구현완료 | 상점별 전체 리스트 뿌려주기 (프론트에서 쳐내겠쥐..?) | |
Description | URL (endpoints) | Method | Body | Payload | 상태 | ps |
---|---|---|---|---|---|---|
첫 주문 여부 검사 | /order/firstorder/:customerno | GET | return {true / false} | 구현 완료 | 첫 주문일 시 true, 아니면 false | |
주문내역 조회 | ||||||
(소비자) | /order/customer/:customerno | GET | return | |||
[ | ||||||
{ |
orderNo,
orderDate,
marketNo,
storeNo,
status,
orderItems:[
{
orderItemNo,
count,
price,
itemName,
orderNo
}
],
marketName,
customerNo,
customerId,
storeName
}, ] | 구현 완료 | orderDate 내림차순으로 반환 | | 상점 주문내역 조회 (판매자) | /order/store/:storeno | GET | | return [ { orderNo, orderDate, marketNo, storeNo, status, orderItems:[ { orderItemNo, count, price, itemName, orderNo } ], marketName: null, customerNo, customerId, storeName: null }, ] | 구현 완료 | orderDate 내림차순으로 반환 | | 주문서 작성 | /order/:customerno&:storeno | POST | [{ item_no, count }]
| return { 주문번호 } | 구현 완료 | 주문서 & 주문 아이템 생성 생성된 주문서의 주문번호 반환 | | 주문 상태 수정 | /order/ | PUT | { order_no, status } | return { orderNo, orderDate, marketNo, storeNo, status, orderItems:[ { orderItemNo, count, price, itemName, orderNo } ], marketName: null, customerNo, customerId, storeName: null } | 구현 완료 | 주문번호, 바꿀 상태(string) 입력 받아서 status 수정, 수정된 주문 정보 반환 |
Description | URL (endpoints) | Method | Body | Payload | 상태 | ps |
---|---|---|---|---|---|---|
상점의 호출 목록 조회 | /call/:storeno | GET | return | |||
[ | ||||||
{ |
orderNo,
customerId,
storeNo
}, ] | 구현 완료 | | | 호출 생성 | /call/:storeno&:customerid | POST | | return { orderNo } | 구현 완료 | | | 호출 삭제 | /call/:storeno&:customerid | DELETE | | | 구현 완료 | 삭제 후 나머지 데이터 orderNo 업데이트 |