feat: frontend

This commit is contained in:
2025-11-17 21:07:51 -07:00
parent dd0ab39985
commit e1396e2d24
87 changed files with 13616 additions and 148 deletions

View File

@@ -0,0 +1,9 @@
/*
AddItemToOrder
PUT: {{baseURL}}/order/item?item_id=2&order_id=2&quantity=8
*/
export interface AddItemToOrderQuery {
item_id: string;
order_id: string;
quantity: string;
}

View File

@@ -0,0 +1,9 @@
/*
CreateItem
POST: {{baseURL}}/item/create?item_name=4 Berry Pie&in_season=1&item_price=35.00
*/
export interface CreateItemQuery {
item_name: string;
in_season: string;
item_price: string;
}

View File

@@ -0,0 +1,8 @@
/*
CreateOrder
POST: {{baseURL}}/order/create?orderer=john roe&date_due=2026-01-01T23:59:59-07:00
*/
export interface CreateOrder {
orderer: string;
date_due: string;
}

View File

@@ -0,0 +1,7 @@
/*
CreatePosition
POST: {{baseURL}}/position/create?position_name=Manager
*/
export interface CreatePosition {
position_name: string;
}

View File

@@ -0,0 +1,7 @@
/*
DeactivateUser
DELETE: {{baseURL}}/user/deactivate?user_id=4
*/
export interface DeactivateUser {
user_id: string;
}

View File

@@ -0,0 +1,7 @@
/*
DemoteUser
PUT: {{baseURL}}/user/demote?user_id=1
*/
export interface DemoteUser {
user_id: string;
}

View File

@@ -0,0 +1,7 @@
/*
GetCurrentPrice
GET: {{baseURL}}/item/price/current?item_id=1
*/
export interface GetCurrentPriceQuery {
item_id: string;
}

View File

@@ -0,0 +1,7 @@
/*
GetOrderById
GET: http://localhost:8080/order?order_id=8
*/
export interface GetOrderById {
order_id: string;
}

View File

@@ -0,0 +1,7 @@
/*
GetOrderItems
GET: http://localhost:8080/order/items?order_id=1
*/
export interface GetOrderItemsQuery {
order_id: string;
}

View File

@@ -0,0 +1,8 @@
/*
GetOrderTable
GET: http://localhost:8080/order/table?page=0&filter=257
*/
export interface GetOrderTableQuery {
page: string;
filter: string;
}

View File

@@ -0,0 +1,7 @@
/*
PromoteUser
PUT: {{baseURL}}/user/promote?user_id=1
*/
export interface PromoteUser {
user_id: string;
}

View File

@@ -0,0 +1,8 @@
/*
SetItemPrice
PUT: {{baseURL}}/item/price?item_id=1&item_price=36.99
*/
export interface SetItemPriceQuery {
item_id: string;
item_price: string;
}

View File

@@ -0,0 +1,8 @@
/*
SetUserPosition
PUT: {{baseURL}}/user/position?user_id=2&position=Manager
*/
export interface SetUserPosition {
user_id: string;
position: string;
}

View File

@@ -0,0 +1,7 @@
/*
UserName
PUT: {{baseURL}}/user/name?user_name=Ada%20Conway
*/
export interface UserName {
user_name: string;
}

View File

@@ -0,0 +1,7 @@
/*
UserTable
GET: {{baseURL}}/users?page=1
*/
export interface UserTable {
page: string;
}