Appearance
Mess Menu Item
hostel.mess_menu_item
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
hostel | hostel | link → hostel.hostel | required |
day_of_week | day of week | select | required; one of: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday |
meal_type | meal type | select | required; one of: Breakfast, Lunch, Snacks, Dinner |
dish_name | dish name | text | required |
description | description | longtext | |
cuisine_type | cuisine type | text | |
calories | calories | number | min 0 |
allergens | allergens | text | |
veg_nonveg | veg nonveg | select | one of: Veg, Non-veg |
amount | amount | money |
Permissions
| Role | Can |
|---|---|
hostel:admin | read, create, update, delete, import, export |
hostel:warden | read, create, update, delete — only rows in the user's scope (via hostel) |
hostel:accounts | read |
hostel:student | read |
API
http
GET /api/hostel/mess_menu_item?<field>=<value>&limit=100&offset=0
POST /api/hostel/mess_menu_item
GET /api/hostel/mess_menu_item/:id
PATCH /api/hostel/mess_menu_item/:id
DELETE /api/hostel/mess_menu_item/:idBulk import: GET /api/_import/hostel/mess_menu_item/template (CSV template), then POST /api/_import/hostel/mess_menu_item. See REST API.