EMS-UGC API Docs
Staff

Staff Record

Staff Management APIs

Base URL: http://192.168.100.250/


Endpoints

MethodEndpointDescription
GET/staffList all staff
GET/staff/create-formGet form data for creating staff
POST/staffCreate staff
PUT/staff/{id}Update staff
DELETE/staff/{id}Delete staff

show() has no wantsJson() guard — returns HTML only.


List

GET /staff
Accept: application/json

Filters (Position, Job Type, Gender) are client-side DataTables only.


Get Form Data

GET /staff/create-form
Accept: application/json

Returns positions, job types, job categories, and other data needed for the create form.


Create

POST /staff
Content-Type: multipart/form-data
FieldTypeRequired
first_namestringYes
middle_namestringNo
last_namestringYes
nepali_namestringYes
salutationstringYes
mobile_numberstringYes
emailemailYes
date_of_birthstring (BS)Yes
date_of_birth_engstring (AD)Yes
genderstringYes
caste_ethnicitystringYes
edjstringYes
disability_statusstringYes
citizenship_numberstringYes
national_idstringYes
permanent_provincestringYes
permanent_districtstringYes
permanent_local_levelstringYes
permanent_ward_nostringYes
permanent_tolestringYes
permanent_house_nostringYes
current_provincestringYes
current_districtstringYes
current_local_levelstringYes
current_ward_nostringYes
current_tolestringYes
current_house_nostringYes
spouse_namestringNo
spouse_contactstringNo
spouse_occupationstringNo
level_of_studystringYes
board_universitystringYes
institution_namestringYes
position_idintegerYes
job_type_idintegerYes
job_category_idintegerYes
appointment_datestring (BS)Yes
bank_acstringYes
bank_namestringYes
bank_branchstringYes
pan_nostringYes
photofile (jpeg,png,jpg, ≤2MB)No
citizenship_picfile (jpeg,png,jpg, ≤2MB)No
attachmentfile (pdf,jpeg,png,jpg, ≤2MB)No
appointment_documentfile (pdf,jpeg,png,jpg, ≤2MB)No

Update

PUT /staff/{staff}
Content-Type: multipart/form-data

Request Body: Same fields + file uploads as Create.


Delete

DELETE /staff/{staff}

Notes

IssueDetail
create() / show() / edit()No wantsJson() guard — return HTML only
Index filtersClient-side DataTables only, no server-side query params
Index dataServer-rendered HTML table, not a paginated JSON endpoint
No legacy JSONAll JSON responses use ApiResponse
File uploadsPOST/PUT must use multipart/form-data
Address dropdownsFrom static nepal_location.json

On this page