Skip to content
2 changes: 2 additions & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
"redis": "^4.7.0",
"sequelize": "^6.37.3",
"square": "^37.1.0",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.1",
"uuid": "^10.0.0",
"winston": "^3.14.2"
},
Expand Down
84 changes: 79 additions & 5 deletions backend/src/config/swagger.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,52 @@ const options = {
example: 'Detailed error description'
}
}
},
Restaurant: {
type: 'object',
properties: {
id: {
type: 'integer',
example: 1
},
name: {
type: 'string',
example: 'Demo Restaurant'
},
address: {
type: 'string',
example: '123 Main St'
},
city: {
type: 'string',
example: 'San Francisco'
},
state: {
type: 'string',
example: 'CA'
},
zipCode: {
type: 'string',
example: '94102'
},
phone: {
type: 'string',
example: '555-1234'
},
email: {
type: 'string',
format: 'email',
example: 'demo@restaurant.com'
},
createdAt: {
type: 'string',
format: 'date-time'
},
updatedAt: {
type: 'string',
format: 'date-time'
}
}
}
}
},
Expand All @@ -56,17 +102,45 @@ const options = {
name: 'Health',
description: 'Health check endpoints'
},
{
name: 'Square OAuth',
description: 'Square POS OAuth 2.0 authentication endpoints'
},
{
name: 'Restaurants',
description: 'Restaurant management endpoints'
},
{
name: 'Ingredients',
description: 'Ingredient catalog management endpoints'
},
{
name: 'Recipes',
description: 'Recipe management endpoints'
},
{
name: 'Inventory',
description: 'Inventory management endpoints'
description: 'Inventory tracking and optimization endpoints'
},
{
name: 'Sales',
description: 'Sales data management endpoints'
},
{
name: 'Periods',
description: 'Inventory period management endpoints'
},
{
name: 'Variance',
description: 'Variance analysis endpoints'
},
{
name: 'Agents',
description: 'AI agent endpoints for cost, forecast, and inventory analysis'
},
{
name: 'Square OAuth',
description: 'Square POS OAuth 2.0 authentication endpoints'
},
{
name: 'POS Sync',
description: 'POS data synchronization endpoints'
},
{
name: 'CSV Imports',
Expand Down
Loading