Government of Arunachal Pradesh
eHRMS
( Online Human Resource Management System )
Open Application Programming Interface(API) List

API's List

Below is the list of Web API provided by HRMS.You need to register with HRMS to use API.Your request will be processed by your state administrator.


S.No. API Name Description URL And Parameters
1. State List It will returns list of states along with statename, statecode and state abbreviation. URL: http://BaseURL/API/Values/StatesList

Parameter Description:
-No Parameters-
2. State Wise Department List It will return list of departments of a particular state along with department name and department code URL: http://BaseURL/API/Values/DepartmentsList/StateAbbreviation

Parameter Description:
StateAbbreviation: e.g. HP
3. State Wise Designation List It will return list of designations of a particular state along with designation name and designation code. URL: http://BaseURL/API/Values/DesignationsList/StateAbbreviation

Parameter Description:
StateAbbreviation: e.g. HP
4. Department Wise Office List It will return all the offices of a particular state department wise along with office name , office address, office contact number, office code etc. URL: http://BaseURL/API/Values/DepartmentWiseOffices/StateAbbreviation?Dept=DepartmentCode

Parameter Description:
StateAbbreviation: e.g. HP
Dept: Department Code
5. Department wise vacancy details It will return Vacancy details of a particular state of a particular department along with Vacancy name, no. of posts application fees etc. URL: http://BaseURL/API/Values/DepartmentWiseVaccancy/StateAbbreviation?Dept=DepartmentCode

Parameter Description:
StateAbbreviation: e.g. HP
Dept: Department Code
6. Get employee details. It will return employee detail of a particular state employee code wise such as employee full name, employee father name, employee date of birth etc. URL: http://BaseURL/API/Values/GetEmployeeDetails/StateAbbreviation?EmpCode=EmployeeCode

Parameter Description:
StateAbbreviation: e.g. HP
EmpCode: Employee Code
7. Department wise employees List. It will return list of employees of a particular state department wise along with employee information such as employee full name, employee father name, employee date of birth etc. URL: http://BaseURL/API/Values/DepartmentWiseEmployees/StateAbbreviation?Dept=DepartmentCode

Parameter Description:
StateAbbreviation: e.g. HP
Dept: DepartmentCode
8. Search Employee It will return Employee detail of a particular state. Employee can be searched by his employee code or GpfCpf number or Unique Identification number.It return employee information such as employee full name, employee father name, employee date of birth etc. URL: http://BaseURL/API/Values/SearchEmployee/StateAbbreviation?SearchBy=UID&SearchValue=ParamValue

Parameter Description:
StateAbbreviation: e.g. HP
SearchBy: UID or EMPCODE or GPFCPF
SearchValue: Value of particuler parameter
9. Get Employee Backlog Leave Details. It will return employee Backlog Leave detail of a particular state employee code wise such as leave name, action, from date,to date etc. URL: http://BaseURL/API/Values/GetEmployeeBacklogLeaveDetails/StateAbbreviation?EmpCode=EmployeeCode

Parameter Description:
StateAbbreviation: e.g. HP
EmpCode: Employee Code
10. Get Employee Joining Relieving Details. It will return employee Joining Relieving detail of a particular state employee code wise such as employee joining order no., joining date, designame,joining office,reliving date etc. URL: http://BaseURL/API/Values/GetEmployeeJoiningRelievingDetails/StateAbbreviation?EmpCode=EmployeeCode

Parameter Description:
StateAbbreviation: e.g. HP
EmpCode: Employee Code
11. Get Employee Online Order Notifications. It will return Online Order Notifications of a particular state employee code wise such as Online leave, Service, NOC, Transfer, Promotion orders etc. URL: http://BaseURL/API/Values/GetEmployeeNotificationDetails/StateAbbreviation?EmpCode=EmployeeCode

Parameter Description:
StateAbbreviation: e.g. HP
EmpCode: Employee Code

How To Integrate

To integrate out API with your application is quite simple. You need to pass your registered e-mail and access key separated by : symbol.You can use HttpClient class to send HTTP requests and receive HTTP responses.Below is the sample code to use our Web API:

HttpClient client = new HttpClient(); string authInfo = "Your registered email" + ":" + "Your AccessKey"; authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo)); client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authInfo); // API Base Address client.BaseAddress = new Uri("http://BaseURL/"); // Call appropriate method as per your need. HttpResponseMessage response = client.GetAsync("API/Values/DepartmentsList/StateAbbreviation?Param1=Param1Value&Param2=Param2Value").Result; if (response.IsSuccessStatusCode) { // Get Your Result in JSON format var result = response.Content.ReadAsStringAsync().Result; }