MedBenHadid / Prof-Ms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Microservice prof

Introduction

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.

Technologies used

Eureka Server

The Eureka server is in this repository we used a spring boot project with spring cloud and Netflix eureka as dependencies

Eureka Client

This micro service is a Spring app that registers in the eureka server with the spring-cloud-starter-netflix-eureka-client dependecy

Eureka Zuul gateway

The gateway is in the Zuul-Gateway repository like the server we created the gateway with spring boot and netflix zuul as dependencies

Api requests

prof Model

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"

}

List prof


to list all the prof you need to:
  • use the GET method
  • use this path: /retrieve-all-users

Create prof


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

Update 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

Delete 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)

About


Languages

Language:Java 100.0%