Module Rest Api
Module Rest Api
CONTENTS
This module has the following files:
1. MODULE_REST_API.doc
2. MODULE_REST_API_MEDIA.zip
INTRODUCTION
We all know that nowadays many graduates are unemployed. So the government appoints you
as a competent person to create a job seekers platform.
The goal of this platform is so that societies can find work on the platform without having to
come to the company location directly and can also see when and where society can come to
the company location.
Specifications :
Feature: A1 - Login and Logout as society: as a visitor, i want to
login so that i can enter the system and applying for jobs.
Request:
URL: [domain]/api/v1/auth/login
Method: POST
Header:
Response:
Body: {
"born_date": "1974-10-22",
"gender": "male"|”female”,
"token": "e96aaafb6f2f76460b8cc93723bd030e",
"regional": {
"id": 1,
Specifications:
Feature: A2 - Request Data Validation: As a society, I want to request
data validaton so that I can applying for jobs when my data validation
is accepted.
Request:
URL: [domain]/api/v1/validation
Params: { token }
Method: POST
Header:
Response:
Request:
URL: [domain]/api/v1/validations
Params: { token }
Method: GET
Header:
Body:
Response:
A2c - If success
Header: Response code: 200
Body: {
“validation”: {
"id": 1,
"status": "pending”|”accepted”|”rejected",
"work_experience": "SomeText”|null,
"job_category_id": "SomeText"|null,
"job_position": "SomeText"|null,
"reason_accepted": “SomeText”|null,
"validator_notes": “SomeText”|null,
Job Vacancy
When the validation data has been accepted by the validator and society will applying for jobs, the society
can choose the job varancy based on the job category that has been selected during data validation. List of
available job varancy at each company should also be displayed.
In the job varancy detail, calculate the number of people who have registered for this job.
Specifications:
Request:
URL: [domain]/api/v1/job_vacancies
Params: { token }
Method: GET
Header:
Body:
Response:
A3a - If success
Body: {
"vacancies": [
"id": 1,
"category" : {
"id": 1,
"job_category": "SomeText",
},
"available_position": [
{
"position": "Web Developer",
"capacity": 2,
"apply_capacity": 15,
},
...,
},
...,
Request:
Params: { token, id }
Method: GET
Header:
Body:
Response:
A3c - If success
Body: {
"vacancy": {
"id": 1,
"category" : {
"id": 1,
"job_category": "SomeText",
},
"available_position": [
"capacity": 2,
"apply_capacity": 15,
"apply_count": 10,
},
...,
},
Vacancy ID and position must be filled where the society can choose more than one position where the
position has not reached the maximum apply.
Specifications:
Feature: A4 – Applying for Jos: as a society, i want to applying for
jobs.
Request:
URL: /api/v1/applications
Params: { token }
Method: POST
Header:
notes : “SomeText” }
Response:
A4a - If success
Body: {
Request:
URL: [domain]/api/v1/applications
Params: { token }
Method: GET
Header:
Body: Response:
A4f - If success
"vacancies": [
"id": 1,
"category" : {
"id": 1,
"job_category": "SomeText",
},
"position": [
"apply_status":
"pending”|”accepted”|”rejected",
},
..., ]
},
...,
● Import the database that has been provided in db-dump in the media files folder.
● You can check community accounts based on vaccination stages by looking at the accounts that
have been provided in the folder REST_API_MEDIA/account/
● Create/generate a DB-diagram named “db-diagram.xxx” (xxx is the extension/type of the file eg.
pdf or jpg) and put it into the directory mentioned above. Example:
● For this module, you must use one of the available frameworks provided. Applications developed
without use of any of these frameworks will not be considered. You should take advantage of the
framework as much as possible.