ChakriGolpo is a RESTful API designed to facilitate job posting and application processes for a web project of the same name. The API is built using Java Spring MVC framework and managed with Maven for efficient project management.
- Hibernate: Hibernate is utilized for data persistence, simplifying database operations, and enhancing scalability.
- MySQL: MySQL is employed for efficient data storage and retrieval, providing a robust database solution.
- Spring Security: Spring Security is integrated to provide robust authentication and authorization mechanisms, ensuring secure access to resources.
- Jackson: Jackson library is utilized for JSON data binding and serialization, facilitating seamless communication between the API and clients.
- Commons FileUpload: Commons FileUpload library is incorporated for handling file uploads, enabling users to upload documents or images as part of job applications.
- Maven: Maven is used to manage project dependencies and build processes, streamlining development and deployment workflows.
The project follows a standard MVC (Model-View-Controller) architecture, with separate packages for models, controllers, services, repositories, and configuration files. This structure promotes modularity, code organization, and ease of maintenance.
API Endpoints
-
Auth Context
- Method: GET
- URL:
http://localhost:8090/ChakriGolpo/auth/secured
- Request Body: N/A
- Response: N/A
-
Registration
- Method: POST
- URL:
http://localhost:8090/ChakriGolpo/auth/register
- Request Body:
{ "username": "", "password": "" }
- Response: N/A
-
Get Role
- Method: GET
- URL:
http://localhost:8090/ChakriGolpo/roles
- Request Body: N/A
- Response: N/A
-
Post Role
- Method: POST
- URL:
http://localhost:8090/ChakriGolpo/roles
- Request Body:
{ "roleName": , "users": [ { "userId": 49 } ] }
- Response: N/A
-
Get Users
- Method: GET
- URL:
http://localhost:8090/ChakriGolpo/auth/users
- Request Body: N/A
- Response: N/A
-
By Username
- Method: GET
- URL:
http://localhost:8090/ChakriGolpo/auth/users/kawasaki23
- Request Body: N/A
- Response: N/A
-
Update User
- Method: PUT
- URL:
http://localhost:8090/ChakriGolpo/auth/users/
- Request Body: N/A
- Response: N/A
-
Delete User
- Method: DELETE
- URL:
http://localhost:8090/ChakriGolpo/auth/users/40
- Request Body: N/A
- Response: N/A
-
Apply - Job
- Method: POST
- URL:
http://localhost:8090/ChakriGolpo/candidate/application/apply
- Request Body:
{ "jobSeeker": { "jobSeekerId": 1, "user": { "userId": 1, "username": "kawasaki23" } }, "job": { "jobId": 1, "jobTitle": "Corporate Innovation Facilitator" }, "status": "PENDING", "appliedAt": "2024-01-02T16:45:30.491" }
- Response: N/A
-
Get Application
- Method: GET
- URL:
http://localhost:8090/ChakriGolpo/candidate/application/2
- Request Body: N/A
- Response: N/A
-
Delete Application
- Method: DELETE
- URL:
http://localhost:8090/ChakriGolpo/candidate/application/3
- Request Body: N/A
- Response: N/A
-
Update Application
- Method: PUT
- URL:
http://localhost:8090/ChakriGolpo/candidate/application
- Request Body:
{ "applicationId": 2, "jobSeekerId": 1, "job": { "jobId": 1, "company": { "companyId": 1 }, "jobTitle": "Corporate Innovation Facilitator", "updatedAt": [ 2024,1,1,23,51,36 ] }, "status": "APPROVED", "appliedAt": [ 2021, 1, 2, 1, 43, 10 ] }
-
Post Candidate Record
- Method: POST
- URL:
http://localhost:8090/ChakriGolpo/candidate/
- Request Body:
{ "user": { "userId": 54 }, "fullName": "dawd", "biography": "dwad" }
-
Get Candidate Record
- Method: GET
- URL:
http://localhost:8090/ChakriGolpo/candidate/1
- Request Body: N/A
- Response: N/A
-
Update Candidate Record
- Method: PUT
- URL:
http://localhost:8090/ChakriGolpo/candidate/1
- Request Body:
{ "candidateId": 1, "user": { "userId": 54 }, "fullName": "dawd", "biography": "dwad" }
-
Delete Candidate Record
- Method: DELETE
- URL:
http://localhost:8090/ChakriGolpo/candidate/1
- Request Body: N/A
- Response: N/A
-
Post Employer Record
- Method: POST
- URL:
http://localhost:8090/ChakriGolpo/employer/
- Request Body:
{ "user": { "userId": 40 }, "companyName": "Dawd", "description": "dawd" }
-
Get Employer Record
- Method: GET
- URL:
http://localhost:8090/ChakriGolpo/employer/1
- Request Body: N/A
- Response: N/A
-
Update Employer Record
- Method: PUT
- URL:
http://localhost:8090/ChakriGolpo/employer/1
- Request Body:
{ "employerId": 1, "user": { "userId": 40 }, "companyName": "Dawd", "description": "dawd" }
-
Delete Employer Record
- Method: DELETE
- URL:
http://localhost:8090/ChakriGolpo/employer/1
- Request Body: N/A
- Response: N/A
-
Get Employer Applications
- Method: GET
- URL:
http://localhost:8090/ChakriGolpo/employer/1/applications
- Request Body: N/A
- Response: N/A
-
Post Job
- Method: POST
- URL:
http://localhost:8090/ChakriGolpo/employer/1/jobs
- Request Body:
{ "jobTitle": "Corporate Innovation Facilitator", "description": "Requires strong analytical skills", "postedAt": "2024-01-01T00:00:00", "status": "OPEN" }
- Response: N/A
-
Get Job
- Method: GET
- URL:
http://localhost:8090/ChakriGolpo/employer/1/jobs/1
- Request Body: N/A
- Response: N/A
-
Update Job
- Method: PUT
- URL:
http://localhost:8090/ChakriGolpo/employer/1/jobs/1
- Request Body:
{ "jobId": 1, "employer": { "employerId": 1 }, "jobTitle": "Corporate Innovation Facilitator", "description": "Requires strong analytical skills", "postedAt": [ 2024, 1, 1, 0, 0, 0 ], "status": "OPEN" }
- Response: N/A
-
Delete Job
- Method: DELETE
- URL:
http://localhost:8090/ChakriGolpo/employer/1/jobs/1
- Request Body: N/A
- Response: N/A
To get started with the ChakriGolpo API, follow these steps:
-
Clone the Repository: Clone the Chakrigolpo-Api repository from GitHub to your local machine.
-
Set Up MySQL Database: Set up a MySQL database and configure the database connection properties in the
application.properties
file. -
Build and Run the Application: Use Maven to build the application and run it using a Java IDE or command-line interface.
-
Explore the API: Once the application is running, you can explore the API endpoints using tools like Postman or curl.
Contributions to the ChakriGolpo project are welcome! Feel free to submit bug reports, feature requests, or pull requests through the GitHub repository.
This project is licensed under the MIT License. Feel free to use, modify, and distribute the code for your own purposes.
For any inquiries or support regarding the ChakriGolpo API, please contact Mohammad Omar.