Skip to content
On this page

WhatToEat - APIs deprecated

User/Login

登入

Request
json
{
    "email": "",
    "password": ""
}
Response
json
{
    "result": 1,
    "email": "",
    "name": "",
    "picture": "",
    "role": 0, 
    "accountType": "",
    "permissionTime": ""
}

User/ThreePartLogin

第三方登入

Request
json
{
    "email": "",
    "name": "",
    "accountType": ""
}
Response
json
{
    "result": 1,
    "email": "",
    "name": "",
    "picture": "",
    "role": 1,
    "accountType": "",
    "permissionTime": ""
}

User/SignUp

註冊

Request
json
{
    "email": "",
    "password": "",
    "name": "",
    "role": "",
    "accountType": ""
}
Response
json
{
    "result": 1
}

User/UpdatePassword

更改密碼

Request
json
{
    "email": "",
    "oldPassword": "",
    "newPassword": ""
}
Response
json
{
    "result": 1
}

User/SendVerificationCodeEmail

發送驗證碼 Email

Request
json
{
    "email": ""
}
Respnse
json
{
    "result": 1,
    "verificationCode": ""
}

User/ResetPassword

重設密碼

Request
json
{
    "email": "",
    "verificationCode": "",
    "newPassword": ""
}
Response
json
{
    "result": 1
}

User/UpdateAccountPermissionDeadline

更新店家權限時限

Request
json
{
    "email": "",
    "role": ""
}
Response
json
{
    "result": 1,
    "permissionTime": ""
}

User/UpdatePicture

更新圖片

Request
json
{
    "email": "",
    "picture": ""
}
Response
json
{
    "result": 1
}

User/GetPicture

取得圖片 URL

Request
json
{
    "email": ""
}
Response
json
{
    "result": 1,
    "picture": ""
}

Stores/GetClassifyList

取得標籤列表

Response
json
{
    "result": 1,
    "classifications": [
        {
            "name": "",
            "tagColor": ""
        }
    ]
}

Stores/GetStoreList

取得店家列表

Request
json
{
    "email": ""
}
Response
json
{
    "result": 1,
    "stores": [
        {
            "name": "",
            "address": "",
            "picture": "",
            "phone": "",
            "website": "",
            "classification": [
                {
                    "name": "",
                    "tagColor": ""
                }
            ],
            "tag": "",
            "isFavorite": true,
            "latitude": "",
            "longitude": "",
            "star": ""
        }
    ]
}

Stores/StoreSearch

店家搜尋

Request
json
{
    "email": "",
    "kind": "",
    "keywords": [""]
}
Response
json
{
    "result": 1,
    "stores": [
        {
            "name": "",
            "address": "",
            "picture": "",
            "phone": "",
            "website": "",
            "classification": [
                {
                    "name": "",
                    "tagColor": ""
                }
            ],
            "tag": "",
            "isFavorite": true,
            "latitude": "",
            "longitude": "",
            "star": ""
        }
    ]
}

Stores/GetTabList

取得符合標籤之店家列表

Request
json
{
    "email": "",
    "tag": ""
}
Response
json
{
    "result": 1,
    "stores": [
        {
            "name": "",
            "address": "",
            "picture": "",
            "phone": "",
            "website": "",
            "classification": [
                {
                    "name": "",
                    "tagColor": ""
                }
            ],
            "tag": "",
            "isFavorite": true,
            "latitude": "",
            "longitude": "",
            "star": ""
        }
    ]
}

Stores/CreateComment

新增留言

Request
json
{
    "storeName": "",
    "userEmail": "",
    "content": "",
    "starAmount": ""
}
Reponse
json
{
    "result": 1
}

Stores/GetCommentList

取得留言列表

Request
json
{
    "storeName": ""
}
Response
json
{
    "result": 1,
    "comments": [
        {
            "id": "",
            "userName": "",
            "userPicture": "",
            "content": "",
            "starAmount": "",
            "createDate": ""
        }
    ]
}

Stores/CreatePost

新增貼文

Request
json
{
    "storeName": "",
    "title": "",
    "content": ""
}
Response
json
{
    "result": 1
}

Stores/GetPostList

取得貼文列表

Request
json
{
    "storeName": ""
}
Response
json
{
    "result": 1,
    "posts": [
        {
            "id": "",
            "title": "",
            "content": "",
            "createDate": ""
        }
    ]
}

Stores/CreateReservation

新增預約

Request
json
{
    "storeName": "",
    "email": "",
    "name": "",
    "phone": "",
    "amount": "",
    "reservationTime": ""
}
Response
json
{
    "result": 1
}

Stores/GetReservationList

取得預約列表

Request
json
{
    "kind": "",
    "information": ""
}
Response
json
{
    "result": 1,
    "reservations": [
        {
            "id": "",
            "name": "",
            "phone": "",
            "amount": "",
            "reservationTime": "",
            "createDate": ""
        }
    ]
}

Stores/GetReservationInformation

取得預約資訊

Request
json
{
    "email": ""
}
Response
json
{
    "result": 1,
    "reservationInformation": ""
}

Stores/DeleteReservation

刪除預約

Request
json
{
    "id": ""
}
Response
json
{
    "result": 1
}

Stores/GetDiscountList

取得折扣列表

Request
json
{
    "email": ""
}
Response
json
{
    "result": 1,
    "discounts": [
        {
            "storeName": "",
            "title": "",
            "picture": "",
            "discount": "",
            "deadline": "",
            "notice": ""
        }
    ]
}

Stores/AddToFavorite

新增收藏

Request
json
{
    "email": "",
    "storeName": ""
}
Response
json
{
    "result": 1
}

Stores/CancelFavorite

取消收藏

Request
json
{
    "email": "",
    "storeName": ""
}
Response
json
{
    "result": 1
}

Stores/GetFavoriteList

取得收藏列表

Request
json
{
    "email": ""
}
Resposne
json
{
    "result": 1,
    "stores": [
        {
            "name": "",
            "address": "",
            "picture": "",
            "phone": "",
            "website": "",
            "tag": "",
            "isFavorite": true,
            "latitude": "",
            "longitude": "",
            "star": ""
        }
    ]
}

Stores/GetHistoryList

取得歷史列表

Request
json
{
    "email": "",
    "names": [""]
}
Response
json
{
    "result": 1,
    "stores": [
        {
            "name": "",
            "address": "",
            "picture": "",
            "phone": "",
            "website": "",
            "tag": "",
            "isFavorite": true,
            "latitude": "",
            "longitude": "",
            "star": ""
        }
    ]
}

Stores/CreateReport

新增回報

Request
json
{
    "storeName": "",
    "email": "",
    "content": ""
}
Response
json
{
    "result": 1
}

Stores/GetReportList

取得回報列表

Response
json
{
    "result": 1,
    "reports": [
        {
            "id": "",
            "userName": "",
            "userPicture": "",
            "storeName": "",
            "content": "",
            "createDate": ""
        }
    ]
}

Picture/Create

新增圖片

Request
json
{
    "file_name": "",
    "sub_file_name": "",
    "file": "",
    "type": ""
}
Response
json
{
    "result": 1,
    "picturePath": "",
    "fullPath": ""
}

Released under the MIT License.