1. Make sure you have Java 17 installed
java -version
# java version "17.0.4.1"
2. Clone the application
git clone git@github.com:Shapeqs/TechnicalTest.git
3. Build and run the app using maven
cd path/to/the/cloned/application/TechnicalTest
mvn package
java -jar target/technicaltest-0.0.1-SNAPSHOT.jar
Alternatively, you can run the app without packaging it using -
mvn spring-boot:run
The app will start running at http://localhost:8080.
To see more details run the app and checkout the swagger at http://localhost:8080/swagger-ui/index.html or you can checkout the Postman collection in there
GET /api/v1/users/{id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. The id of the user to fetch |
{
"data": {
"id": 8,
"name": "Jean Marie",
"birthdate": "2000-08-14",
"country": "France",
"phoneNumber": "0123456789",
"gender": "Male"
},
"message": "",
"status": 200
}
POST /api/v1/users
{
"name": "Jean Marie",
"birthdate": "2000-08-14",
"country": "France",
"gender": "Male",
"phoneNumber": "0123456789"
}
{
"data": {
"id": 8,
"name": "Jean Marie",
"birthdate": "2000-08-14",
"country": "France",
"phoneNumber": "0123456789",
"gender": "Male"
},
"message": "User Created",
"status": 201
}
If you have any feedback, please reach out to us at clementquerrepro@gmail.com