Response is in JSON Format, an example is shown below
{
"message" : "Message Here",
"token" : "G903JMkf0-au321k-g21-kt-1@"
}
Login Route Expects the following parameters
username : (String) Contains the Username of Admin
password : (String) Contains the Password
View Battalion Details
<BATTALION ID>
expects ObjectId of Battalion Passall
in<COMPANY ID>
to view all battalions details
Create a Battalion
It expects following Parameters
battalionNumber : (String) Battalion Number
Delete a Battalion
It expects the following
battalionID : (ObjectId) ID of the Battalion
View Company Details
<COMPANY ID>
expects ObjectId of Company
Passall
in<COMPANY ID>
to view all companies details
Create a Company
It Expects the Following Parameters
companyName : (String) Contains the Name of Company
battalion : (ObjectId) Battalion Id
adminName : (String) Admin Name
adminUsername : (String) Admin Username
adminPassword : (String) Admin Password
Delete a Company
It Expects the Following Parameters
companyID : (ObjectId) Company ID
Delete a Company
It Expects the Following Parameters
companyID : (ObjectId) Company ID
View Personnel Detilas
<PERSONNEL ID>
expects ObjectId of Personnel
Passall
in<PERSONNEL ID>
to view all companies details, Admin with Priority 1 ONLY.
Create a Personnel
It Expects the Following Parameters
personnelName : (String) Name of the Personnel
company : (ObjectId) ID of the Company
rank : (String) Rank of the Personnel
metalNo : (String) Metal Number of the Personnel
dateOfBirth : (String) DOB of the Personnel
Delete a Personnel
It Expects the Following Parameters
personnelID : (ObjectId) ID of the Personnel
View Health Parameters Details
Add Health Parameter
It Expects the Following Parameters
paramName : (String) Name of the Parameter
lowerRange : (Number) Lower Range
upperRange : (Number) Upper Range
normalPresence : (Boolean) Normal Presence
stages : [{ name: (String), score : (Number) }] - Array of Objects holding Stage details
Remove Health Parameter
It Expects the Following Parameters
healthParamID : (ObjectID) ID Of Param to Delete