This is the README file for the employeemanager
project.
The employeemanager
project api is a software application that helps manage employee information. It provides functionality to add, update, and delete employee records, as well as view employee details and enable export the data to a file in the root of the project.
Back-end: Java 17, MySql8
- Java 17: https://www.oracle.com/br/java/technologies/downloads/
- MySQL 8: https://dev.mysql.com/downloads/installer/
To install and run the employeemanager
project api, follow these steps:
- Clone the repository:
git clone https://github.com/LuizCampedelli/employeemanager.git
- Navigate to the project directory:
cd employeemanager
- If you are using VSCode, type:
code .
, than install Extension Pack for Java, in the left panel click in Run and Debug. - If you are in Intellij IDEA, just hit the play green button.
Once the API is running, you can access it by opening Insominia or using HTTPie in terminal.
To use Insominia, download it from: https://insomnia.rest/
To use HTTPie, download it from: https://httpie.io/cli
http :8080/employee/all
Parâmetro | Descrição |
---|---|
GET |
Return all employees |
http POST :8080/employee/add < data.json
Parâmetro | Descrição |
---|---|
POST |
Add employee using parameters from data.json |
http :8080/employee/update < data.json
Parâmetro | Descrição |
---|---|
PUT |
Update employee with changed parameters from data.json |
http DELETE :8080/employee/delete/{id}
Parâmetro | Descrição |
---|---|
DELETE |
Delete employee by id |
http :8080/employee/export
Parâmetro | Descrição |
---|---|
GET |
Export all employees to an file named employee.json to the root folder |
http://localhost/employee/all
Parâmetro | Descrição |
---|---|
GET |
Return all employees |
http://localhost/employee/add < data.json
Parâmetro | Descrição |
---|---|
POST |
Add employee using parameters from data.json |
http://localhost/update < data.json
Parâmetro | Descrição |
---|---|
PUT |
Update employee with changed parameters from data.json |
http://localhost/employee/delete/{id}
Parâmetro | Descrição |
---|---|
DELETE |
Delete employee by id |
http://localhost/employee/export
Parâmetro | Descrição |
---|---|
GET |
Export all employees to an file named employee.json to the root folder |
If you would like to contribute to the employeemanager
project, please follow these guidelines:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git commit -m "Add your commit message"
- Push to the branch:
git push origin feature/your-feature-name
- Submit a pull request.
This project is licensed under the MIT License.