Skip to content

medchelios/api-students

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-etudiants

REST API STUDENT

Used Technologies and their references

Spring boot Docker Hub MongoDB Junit

Step 1: clone project

git clone https://github.com/medchelios/api-students.git

Step 2: up image

./docker-compose up

Step3: build package and run project

./mvn package && java -jar target/api-etudiants-0.0.1-SNAPSHOT.jar

Step4: test all endpoint

GET ALL
For Example you can use file data.json

curl --location --request GET 'http://localhost:8081/students/'
SAVE

curl --location --request POST 'http://localhost:8081/students/save' \
--header 'Content-Type: application/json' \
--data-raw ' {
    "name": "Mohamed",
    "studentNumber": 115,
    "email": "[email protected]",
    "courseList": [
      "Docker",
      "Mongodb",
      "TDD"
    ],
    "gpa": 5.0
  }'
DELETE

curl --location --request DELETE 'http://localhost:8081/students/delete/41'
You find other endpoint on controller StudentRestController

Thanks You

About

Building a REST Service with Spring Boot, Docker and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published