EMS-UGC API Docs
Infrastructure

Infrastructure Types

Field definitions for each infrastructure type

Base URL: http://192.168.100.250/

All endpoints use POST /physical-infrastructure with infra_type field to specify the type.


Building

POST /physical-infrastructure
Content-Type: application/json

Request Body:

{
  "infra_type": "building",
  "houseName": "Science Block",
  "areaCoveredByBuilding": 2500,
  "noOfClassrooms": 12,
  "areaCoveredByAllRooms": 1800,
  "ownershipOfBuilding": true,
  "hasInternetConnection": true,
  "remarks": "Good condition"
}
FieldTypeRequired
houseNamestringYes
areaCoveredByBuildingintegerYes
noOfClassroomsintegerYes
areaCoveredByAllRoomsintegerYes
ownershipOfBuildingbooleanYes
hasInternetConnectionbooleanYes
remarksstringNo

Hostel

POST /physical-infrastructure
Content-Type: application/json

Request Body:

{
  "infra_type": "hostel",
  "hostelType": "boys",
  "buildingId": 1,
  "noOfRoomsInHostel": 20,
  "noOfSeats": 60,
  "areaCoveredByHostel": 800,
  "hasPlayground": true,
  "hasInternet": true,
  "hasDrinkingWater": true,
  "hasToilet": true,
  "remarks": ""
}
FieldTypeRequiredNotes
hostelTypestringYesboys, girls, or common
buildingIdintegerYesFK → buildings
noOfRoomsInHostelintegerYes
noOfSeatsintegerYes
areaCoveredByHostelintegerYes
hasPlaygroundbooleanYes
hasInternetbooleanYes
hasDrinkingWaterbooleanYes
hasToiletbooleanYes
remarksstringNo

Land

POST /physical-infrastructure
Content-Type: application/json

Request Body:

{
  "infra_type": "land",
  "totalArea": 5000,
  "unit": "Hector",
  "sheetNo": "SN-001",
  "kittaNo": "KN-123",
  "ownerShip": true,
  "remarks": ""
}
FieldTypeRequiredNotes
totalAreaintegerYes
unitstringYesHector, Ropani, barga meter, or barga feet
sheetNostringYes
kittaNostringYes
ownerShipbooleanYes
remarksstringNo

Lab

POST /physical-infrastructure
Content-Type: application/json

Request Body:

{
  "infra_type": "lab",
  "labName": "Physics Lab",
  "buildingId": 1,
  "labType": "science",
  "areaCoveredByLab": 400,
  "adequencyOfLabEquipment": true,
  "hasInternetConnection": true,
  "equipmentAtLab": "Microscopes, test tubes, chemicals",
  "remarks": ""
}
FieldTypeRequiredNotes
labNamestringYes
buildingIdintegerYesFK → buildings
labTypestringYesCurrently only science
areaCoveredByLabintegerYes
adequencyOfLabEquipmentbooleanYes
hasInternetConnectionbooleanYes
equipmentAtLabtextYes
remarksstringNo

Library

POST /physical-infrastructure
Content-Type: application/json

Request 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": ""
}
FieldTypeRequired
libraryNamestringYes
buildingIdintegerYes
noOfLibraryRoomsintegerYes
totalAreaOfLibraryRoomintegerYes
noOfReadingHallsintegerYes
areaOfReadingHallintegerYes
noOfBooksintegerYes
noOfDailyJournalsintegerYes
noOfWeeklyJournalsintegerYes
noOfMonthlyJournalsintegerYes
noOfAnnualJournalsintegerYes
hasELibraryFacilitybooleanYes
remarksstringNo

Furniture / Equipment / Vehicle

POST /physical-infrastructure
Content-Type: application/json

Request Body:

{
  "infra_type": "furnitureEquipmentVehicle",
  "itemType": "furniture",
  "itemName": "Office Desk",
  "noOfQty": 50,
  "itemDescription": "Wooden office desks",
  "remarks": ""
}
FieldTypeRequiredNotes
itemTypestringYesfurniture, equipment, or vehicle
itemNamestringYes
noOfQtyintegerYes
itemDescriptiontextYes
remarksstringNo

On this page