Appearance
Hostel
hostel.hostel · every change is kept in the audit log · numbered {code}
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
code | code | text | required; unique |
name | name | text | required |
hostel_type | hostel type | select | required; one of: Boys, Girls |
address | address | longtext | |
city | city | text | |
district | district | text | |
state | state | text | |
pincode | pincode | text | max 10 characters |
country | country | text | default "India" |
email | personal data | ||
description | description | longtext | |
image | image | image | |
video | video | file | |
no_of_floors | no of floors | number | min 0 |
deposit | deposit | money | |
offers_veg_mess | offers veg mess | check | default true |
offers_non_veg_mess | offers non veg mess | check | default false |
rules_document | rules document | file | |
payment_closed | payment closed | check | default false |
payment_closed_message | payment closed message | text | |
office_payment_open | office payment open | check | default false |
common_amenities | common amenities | table of hostel_amenity | |
semester_rules | semester rules | table of hostel_semester_rule |
Permissions
| Role | Can |
|---|---|
hostel:admin | read, create, update, delete, import, export |
hostel:warden | read, update |
hostel:accounts | read |
hostel:student | read |
API
http
GET /api/hostel/hostel?<field>=<value>&limit=100&offset=0
POST /api/hostel/hostel
GET /api/hostel/hostel/:id
PATCH /api/hostel/hostel/:id
DELETE /api/hostel/hostel/:idBulk import: GET /api/_import/hostel/hostel/template (CSV template), then POST /api/_import/hostel/hostel. See REST API.