Returns collection of job position in JSON format. Company ID must be provided as URL param.
/api/job_position/list or /api/job_position/list?companyId={companyId} or /api/job_position/list?companyId={companyId}&start={start}&limit={limit}
PROPERTY | DESCRIPTION |
---|---|
Method | GET |
Response formats | JSON |
Requires authentication? | Yes |
Always specify companyId
param
PARAM | TYPE | REQUIRED/OPTIONAL | DESCRIPTION |
---|---|---|---|
companyId |
number | required | The ID of the company for which to return the job positions. |
start |
number | optional | Specify beginning of paging |
limit |
number | optional | Specify end of paging |
Response
{ "count": 2, "list": [ { "id": 3424, "jobTitle": "Software Engineer", "jobTitleId": 3413, "positionName": "SW1", "descr": "", "positionId": "SW1", "employmentStatus": "FULL_TIME_PERMANENT", "vacant": "YES", "active": "YES", "companyId": null }, { "id": 3425, "jobTitle": "Software Engineer", "jobTitleId": 3413, "positionName": "SW2", "descr": "", "positionId": "SW2", "employmentStatus": "FULL_TIME_PERMANENT", "vacant": "YES", "active": "YES", "companyId": null } ] }
Returns Job position details in JSON format. ID must be provided as path parameter.
/api/job_position/load/{id}
PROPERTY | DESCRIPTION |
---|---|
Method | GET |
Response formats | JSON |
Requires authentication? | Yes |
Always specify companyId
param
PARAM | TYPE | REQUIRED/OPTIONAL | DESCRIPTION |
---|---|---|---|
id |
number | required | The ID of the job position to load details. |
HTTP Status Code | Reason |
---|---|
200 |
Found Record |
404 |
Record not found |
405 |
Invalid input |
500 |
Internal server error |
Response
{ "id": 3424, "jobTitle": "Software Engineer", "jobTitleId": 3413, "positionName": "SW1", "descr": "", "positionId": "SW1", "employmentStatus": "FULL_TIME_PERMANENT", "vacant": "YES", "active": "YES", "companyId": null }
Saves job position details, either when creating new job position or updating a job position record. Company ID must be provided in the payload
/api/job_position/save
PROPERTY | DESCRIPTION |
---|---|
Method | POST |
Request representations | application/json |
Requires authentication? | Yes |
{ "id": number [required on updating], "jobTitleId": number [required], "positionName": text [required], "descr": text [optional], "positionId": text [required], "employmentStatus": text of [FULL_TIME_PERMANENT,PART_TIME_PERMANENT,INTERNSHIP,PART_TIME_CONTRACT, FULL_TIME_CONTRACT,TEMPORARY_STATUS,PROBATION,CASUAL] [optional], "vacant": text of [YES,NO] [required], "active": text of [YES,NO] [required] }
HTTP Status Code | Reason |
---|---|
200 |
Successfully saved |
405 |
Invalid input |
500 |
Internal server error |
Payload
{ "jobTitleId": 3413, "positionName": "SW3", "descr": "Sofware engineer position", "positionId": "SW3", "employmentStatus": "FULL_TIME_PERMANENT", "vacant": "YES", "active": "YES" }
Response
{ "success": "true", "message": "Successful" }