this is the prof micro service of this app,it registers prof informations. I made this micro service for our class project while learning micro services and how to configure a eureka server and the micro services that will register into it.
The Eureka server is in this repository we used a spring boot project with spring cloud and Netflix eureka as dependencies
This micro service is a Spring app that registers in the eureka server with the spring-cloud-starter-netflix-eureka-client dependecy
The gateway is in the Zuul-Gateway repository like the server we created the gateway with spring boot and netflix zuul as dependencies
prof : {
"adresse_user":"address" ,
"date_naissance":"2021-10-21",
"firstName":"aziz",
"lastName":"aziz",
"mail_user":"aziz@aziz.com" ,
"salaire_user":"55",
"sexe_user":"m",
"grade":"2eme dame"
"tel_user":"2556586"
}
to list all the prof you need to:
- use the GET method
- use this path: /retrieve-all-users
to create a new course you need to:
- use the POST method
- use this path: /add-prof
- add a json in the request body with the added prof
to update a prof yout need to:
- use the PUT method
- use this path:/update-prof/:id (":id" = the Id of the old prof)
- add a json in the request body with the new prof
to delete a prof you need to:
- use the DELETE method
- use this path: /delete-prof/:id (":id" = the Id of the prof to delete)