Infrastructure Types
Base URL: http://192.168.100.250/
All endpoints use POST /physical-infrastructure with infra_type field to specify the type.
Building
Section titled “Building”POST /physical-infrastructureContent-Type: application/jsonRequest Body:
{ "infra_type": "building", "houseName": "Science Block", "areaCoveredByBuilding": 2500, "noOfClassrooms": 12, "areaCoveredByAllRooms": 1800, "ownershipOfBuilding": true, "hasInternetConnection": true, "remarks": "Good condition"}| Field | Type | Required |
|---|---|---|
houseName |
string | Yes |
areaCoveredByBuilding |
integer | Yes |
noOfClassrooms |
integer | Yes |
areaCoveredByAllRooms |
integer | Yes |
ownershipOfBuilding |
boolean | Yes |
hasInternetConnection |
boolean | Yes |
remarks |
string | No |
Hostel
Section titled “Hostel”POST /physical-infrastructureContent-Type: application/jsonRequest Body:
{ "infra_type": "hostel", "hostelType": "boys", "buildingId": 1, "noOfRoomsInHostel": 20, "noOfSeats": 60, "areaCoveredByHostel": 800, "hasPlayground": true, "hasInternet": true, "hasDrinkingWater": true, "hasToilet": true, "remarks": ""}| Field | Type | Required | Notes |
|---|---|---|---|
hostelType |
string | Yes | boys, girls, or common |
buildingId |
integer | Yes | FK → buildings |
noOfRoomsInHostel |
integer | Yes | |
noOfSeats |
integer | Yes | |
areaCoveredByHostel |
integer | Yes | |
hasPlayground |
boolean | Yes | |
hasInternet |
boolean | Yes | |
hasDrinkingWater |
boolean | Yes | |
hasToilet |
boolean | Yes | |
remarks |
string | No |
POST /physical-infrastructureContent-Type: application/jsonRequest Body:
{ "infra_type": "land", "totalArea": 5000, "unit": "Hector", "sheetNo": "SN-001", "kittaNo": "KN-123", "ownerShip": true, "remarks": ""}| Field | Type | Required | Notes |
|---|---|---|---|
totalArea |
integer | Yes | |
unit |
string | Yes | Hector, Ropani, barga meter, or barga feet |
sheetNo |
string | Yes | |
kittaNo |
string | Yes | |
ownerShip |
boolean | Yes | |
remarks |
string | No |
POST /physical-infrastructureContent-Type: application/jsonRequest Body:
{ "infra_type": "lab", "labName": "Physics Lab", "buildingId": 1, "labType": "science", "areaCoveredByLab": 400, "adequencyOfLabEquipment": true, "hasInternetConnection": true, "equipmentAtLab": "Microscopes, test tubes, chemicals", "remarks": ""}| Field | Type | Required | Notes |
|---|---|---|---|
labName |
string | Yes | |
buildingId |
integer | Yes | FK → buildings |
labType |
string | Yes | Currently only science |
areaCoveredByLab |
integer | Yes | |
adequencyOfLabEquipment |
boolean | Yes | |
hasInternetConnection |
boolean | Yes | |
equipmentAtLab |
text | Yes | |
remarks |
string | No |
Library
Section titled “Library”POST /physical-infrastructureContent-Type: application/jsonRequest Body:
{ "infra_type": "library", "libraryName": "Central Library", "buildingId": 1, "noOfLibraryRooms": 3, "totalAreaOfLibraryRoom": 600, "noOfReadingHalls": 2, "areaOfReadingHall": 300, "noOfBooks": 15000, "noOfDailyJournals": 5, "noOfWeeklyJournals": 3, "noOfMonthlyJournals": 10, "noOfAnnualJournals": 2, "hasELibraryFacility": true, "remarks": ""}| Field | Type | Required |
|---|---|---|
libraryName |
string | Yes |
buildingId |
integer | Yes |
noOfLibraryRooms |
integer | Yes |
totalAreaOfLibraryRoom |
integer | Yes |
noOfReadingHalls |
integer | Yes |
areaOfReadingHall |
integer | Yes |
noOfBooks |
integer | Yes |
noOfDailyJournals |
integer | Yes |
noOfWeeklyJournals |
integer | Yes |
noOfMonthlyJournals |
integer | Yes |
noOfAnnualJournals |
integer | Yes |
hasELibraryFacility |
boolean | Yes |
remarks |
string | No |
Furniture / Equipment / Vehicle
Section titled “Furniture / Equipment / Vehicle”POST /physical-infrastructureContent-Type: application/jsonRequest Body:
{ "infra_type": "furnitureEquipmentVehicle", "itemType": "furniture", "itemName": "Office Desk", "noOfQty": 50, "itemDescription": "Wooden office desks", "remarks": ""}| Field | Type | Required | Notes |
|---|---|---|---|
itemType |
string | Yes | furniture, equipment, or vehicle |
itemName |
string | Yes | |
noOfQty |
integer | Yes | |
itemDescription |
text | Yes | |
remarks |
string | No |