This repository contains a simple Java EE (J2EE) REST API for managing learners and students in a MySQL database. The API allows you to perform basic operations such as adding, deleting, modifying, and retrieving all students from the database.
Follow the instructions below to get started with this API.
- Java EE (J2EE) development environment
- MySQL database
- Maven for dependency management
- Clone this repository.
- Build the project using Maven.
- Deploy the WAR file to your Java EE server.
- Update the database configuration in
src/main/resources/application.properties
. - Start the server and access the API.
The following example is in HTTPie
You can use a tool like curl
or HTTPie to interact with the API. For example, to get all students:
curl -X GET http://localhost:8080/Learner_Etudiant_API/RestApi/learners
Have fun ☕