- HTTP Authentication, scheme: bearer
POST /api/v1/auth/login
Body Parameters
{
"email": "[email protected]",
"password": "12345678"
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
body | string | yes | none | |
» password | body | string | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
POST /api/v1/auth/register
Body Parameters
{
"name": "user",
"phoneNumber": "0000000000",
"email": "[email protected]",
"password": "12345678"
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» name | body | string | yes | none |
» phoneNumber | body | string | yes | none |
body | string | yes | none | |
» password | body | string | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
PUT /api/v1/auth/resetpass
Body Parameters
{
"name": "user",
"phoneNumber": "0000000000",
"email": "[email protected]",
"password": "987654321"
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» name | body | string | yes | none |
» phoneNumber | body | string | yes | none |
body | string | yes | none | |
» password | body | string | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
GET /api/v1/admin/users
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
GET /api/v1/admin/10
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
DELETE /api/v1/admin/16
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
POST /api/v1/admin
Body Parameters
{
"name": "aaa",
"phoneNumber": "0000000000",
"email": "[email protected]",
"password": "12345678",
"role": "MANAGER"
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» name | body | string | yes | none |
» phoneNumber | body | string | yes | none |
body | string | yes | none | |
» password | body | string | yes | none |
» role | body | string | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
POST /api/v1/admin/category
Body Parameters
name: five
description: dhfasjhdfkshjdf
image: string
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» name | body | string | yes | none |
» description | body | string | yes | none |
» image | body | string(binary) | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
PUT /api/v1/admin/category
Body Parameters
name: up
description: updated
image: string
id: "1"
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» name | body | string | yes | none |
» description | body | string | yes | none |
» image | body | string(binary) | yes | none |
» id | body | string | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
GET /api/v1/admin/category
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
DELETE /api/v1/admin/category/4
Body Parameters
name: two
description: oneone
image: string
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» name | body | string | yes | none |
» description | body | string | yes | none |
» image | body | string(binary) | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
GET /api/v1/admin/category/1
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
POST /api/v1/admin/food
Body Parameters
name: dsfffdsa11
description: zeze
image: string
price: "20"
categoryId: "2"
foodCode: F002
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» name | body | string | yes | none |
» description | body | string | yes | none |
» image | body | string(binary) | yes | none |
» price | body | string | yes | none |
» categoryId | body | string | yes | none |
» foodCode | body | string | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
PUT /api/v1/admin/food
Body Parameters
name: up
description: updated
image: string
price: "20"
categoryId: "1"
foodCode: F005
id: "1"
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» name | body | string | yes | none |
» description | body | string | yes | none |
» image | body | string(binary) | yes | none |
» price | body | string | yes | none |
» categoryId | body | string | yes | none |
» foodCode | body | string | yes | none |
» id | body | string | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
GET /api/v1/admin/food/1/food/p
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
GET /api/v1/admin/food/1/foods
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
DELETE /api/v1/admin/food/2
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
GET /api/v1/admin/order
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
POST /api/v1/admin/order
Body Parameters
{
"orderCode": "O003",
"foodCodeList": [
"F001",
"F002"
],
"user_id": 18,
"bill": 69.12
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» orderCode | body | string | yes | none |
» foodCodeList | body | [string] | yes | none |
» user_id | body | integer | yes | none |
» bill | body | number | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
PUT /api/v1/admin/order
Body Parameters
{
"orderCode": "O003",
"foodCodeList": [
"F003",
"F005"
],
"user_id": 18,
"bill": 59.12
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» orderCode | body | string | yes | none |
» foodCodeList | body | [string] | yes | none |
» user_id | body | integer | yes | none |
» bill | body | number | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
GET /api/v1/admin/order/ordr_O002
Body Parameters
{
"orderCode": "O003",
"foodCodeList": [
"F001",
"F002"
],
"user_id": 18,
"bill": 69.12
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» orderCode | body | string | yes | none |
» foodCodeList | body | [string] | yes | none |
» user_id | body | integer | yes | none |
» bill | body | number | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
DELETE /api/v1/admin/order/3
Body Parameters
{
"orderCode": "O003",
"foodCodeList": [
"F001",
"F002"
],
"user_id": 18,
"bill": 69.12
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» orderCode | body | string | yes | none |
» foodCodeList | body | [string] | yes | none |
» user_id | body | integer | yes | none |
» bill | body | number | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
POST /api/v1/reservation
Body Parameters
{
"reservationCode": "RSV001",
"amountOfPeople": 3,
"slotTime": "2020-05-30T09:45:15",
"user_id": 21
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» reservationCode | body | string | yes | none |
» amountOfPeople | body | integer | yes | none |
» slotTime | body | string | yes | none |
» user_id | body | integer | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
PUT /api/v1/reservation
Body Parameters
{
"reservationCode": "RSV001",
"amountOfPeople": 10,
"slotTime": "2020-05-30T09:45:15",
"user_id": 21
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» reservationCode | body | string | yes | none |
» amountOfPeople | body | integer | yes | none |
» slotTime | body | string | yes | none |
» user_id | body | integer | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
GET /api/v1/reservation
Body Parameters
{
"reservationCode": "RSV001",
"amountOfPeople": 5,
"slotTime": "2019-04-28T14:45:15",
"user_id": 21
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» reservationCode | body | string | yes | none |
» amountOfPeople | body | integer | yes | none |
» slotTime | body | string | yes | none |
» user_id | body | integer | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
GET /api/v1/reservation/res_RSV002
Body Parameters
{
"reservationCode": "RSV001",
"amountOfPeople": 10,
"slotTime": "2020-05-30T09:45:15",
"user_id": 21
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» reservationCode | body | string | yes | none |
» amountOfPeople | body | integer | yes | none |
» slotTime | body | string | yes | none |
» user_id | body | integer | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |
DELETE /api/v1/reservation/4
Body Parameters
{
"reservationCode": "RSV001",
"amountOfPeople": 5,
"slotTime": "2019-04-28T14:45:15",
"user_id": 21
}
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | object | no | none |
» reservationCode | body | string | yes | none |
» amountOfPeople | body | integer | yes | none |
» slotTime | body | string | yes | none |
» user_id | body | integer | yes | none |
Response Examples
200 Response
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | Success | Inline |