The Employee Management System (EMS) is a REST API built using Java and Spring Boot that provides endpoints for managing employee-related information and processes. This API allows clients to interact with the system programmatically, enabling businesses to efficiently manage their employees' data.
Branch Management: Endpoints to add, update, and delete branch information.
Department Management: Endpoints to add, update, and delete department information.
Employee Management: Endpoints to add, update, and delete employee (personal, work, contract, and salary ) information.
- Java
- Spring Boot
- Spring Data JPA & Hibernate
- Postgresql
- Lombok
- ModelMapper
To get started with the EMS REST API, follow these steps:
-
Prerequisites: Ensure you have Java, and a Postgresql database installed and set up on your system.
-
Clone the Repository: Clone this repository to your local machine using the following command:
git clone https://github.com/ahmed-sallam/ems.git
-
Configuration: Configure the database connection and other settings in the application.properties file located in the src/main/resources directory.
-
Run the Application: Use your IDE or the following command to run the application:
./mvnw spring-boot:run
-
Access the API: The EMS REST API is now up and running. You can use your preferred API client (e.g., Postman) to interact with the endpoints.
- The EMS REST API provides the following endpoints (still adding):
- GET /api/v1/branches: Get a list of all branches.
- POST /api/v1/branches: Add a new branch.
- GET /api/v1/branches/{id}: Get a specific branch by ID.
- DELETE /api/v1/branches/{id}: Delete a branch.
- PUT /api/v1/branches/{id}: Update details of an existing branch.
- GET /api/v1/branches/{id}/departments: Get departments of an existing branch.
- GET /api/v1/departments: Get a list of all departments.
- POST /api/v1/departments: Add a new department.
- GET /api/v1/departments/{id}: Get a specific department by ID.
- DELETE /api/v1/departments/{id}: Delete a department.
- PUT /api/v1/departments/{id}: Update details of an existing department.
- GET /api/v1/addresses: Get a list of all addresses.
- POST /api/v1/addresses: Add a new address.
- GET /api/v1/addresses/{id}: Get a specific address by ID.
- DELETE /api/v1/addresses/{id}: Delete a address.
- PUT /api/v1/addresses/{id}: Update details of an existing address.
- GET /api/v1/personals: Get a list of all employees personal info.
- POST /api/v1/personals: Add a new employee personal info.
- GET /api/v1/personals/{id}: Get a specific employee personal info by ID.
- DELETE /api/v1/personals/{id}: Delete an employee personal info.
- PUT /api/v1/personals/{id}: Update details of an existing employee personal info.
If you have any questions or suggestions regarding the EMS REST API, feel free to contact us at:
Email: [email protected]
Website: https://tech-peak.com