메뉴


그룹 메뉴 조회

GET api/store/read/group-menu/{groupId}

  • 기능 : 선택한 그룹에 해당 하는 메뉴 리스트를 반

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Path Variables

  • groupId : 요청할 그룹의 고유 ID.

Body

Response

{
    "menus": [
        {
            "menuId": 123,
            "menuImage" : "url",
            "menuName": "코코 샐러드",
            "price": 9500,
            "stockAvailable": true,
            "menuStock": 10,
            "isSoldOut": false
        },
        {
            "menuId": 124,
            "menuImage" : "url",
            "menuName": "코코 음료",
            "price": 4500,
            "stockAvailable": true,
            "menuStock": 5,
            "isSoldOut": false
        }
    ]
}

전체 메뉴 조회

GET api/store/read/menu/{storeId}

  • 기능 : 가게의 모든 메뉴 데이터와 그룹 데이를 리스트로 반환합니다.

  • 만약 그룹이 없으면 ㅣ null 로 반환 됩니다.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Path Variables

  • storeId : 요청할 가게의 고유 ID.

Body

Response


메뉴 이미지 등록

PATCH api/store/update/menu/image/{menuId}

  • 기능 : 한 메뉴에 대한 이미지 변경 및 등

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

menuImage

메뉴 이미지 파일

(key) 값은

Response


다중 삭제 / 품절 처리

PATCH /api/store/read/menu/action

  • 기능 : 체크된 메뉴 다중 삭제/ 품절 처리

  • action : delete, SoldOut

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

menuIds

Number Array

선택된 메뉴 아이디가 담긴 숫자 배열

action

String

delete, SoldOut

Response


메뉴 단 건 삭제

Delete /api/store/menu-delete/{menuId}

  • 기능 : 토글의 이벤트가 발생 시 품절 상태 변경 요청이 이루어짐

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Path Variables

  • menuId : 메뉴의 고유 ID.

Response

단 건 품절 처리

PATCH /api/store/update/menu-sold-out/{menuId}

  • 기능 : 토글의 이벤트가 발생 시 품절 상태 변경 요청이 이루어짐

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Path Variables

  • menuId : 메뉴의 고유 ID.

Body

Name
Type
Description

isSoldOut

BOOLEAN

false/ture

Response

메뉴명 검색

GET /api/store/menu/search

  • 기능 : 키워드 한 개를 기준으로 메뉴 정보를 검색

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Query Parameters

Name
Type
Description

menuName

String

메뉴 이름

storeId

String

가게 고유 아이디

Body

Response

그룹의 아이디/ 이름을 응답에 포함을 시켜야 할까?

Last updated