Skip to content

R401-Services-web-en-Java/API-Produits-et-Utilisateurs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Produits et Utilisateurs

forthebadgeIntelliJ IDEA
Projet universitaire visant à la création d'une API pouvant gérer des utilisateurs et des produits.
L'API sera consommée par deux autres entités : une IHM et une autre API.

Quelles actions sont possibles ? 👷

USERS

UPDATE User

curl -X PUT -H "Authorization: Bearer token" -H "Content-Type: application/json" -d '{"firstname":"Frédéric", "lastname":"EGENSCHEVILLE", "mail":"fredegen@gmail.com", "password":"password", "role":"user"}' http://localhost:8080/API-Produits-et-Utilisateurs-1.0-SNAPSHOT/api/users/fredegen

DELETE User

curl -X DELETE -H "Authorization:Bearer token" http://localhost:8080/API-Produits-et-Utilisateurs-1.0-SNAPSHOT/api/users/fredegen

INSERT User

curl -X POST -H "Authorization: Bearer token" -H "Content-Type: application/json" -d '{"firstname":"Alice","lastname":"Jones","mail":"alicejones@example.com","password":"pa$$word","role":"user","username":"alice23"}’ http://localhost:8080/API-Produits-et-Utilisateurs-1.0-SNAPSHOT/api/users

SELECT User

curl -X GET -H "Authorization:Bearer token" http://localhost:8080/API-Produits-et-Utilisateurs-1.0-SNAPSHOT/api/users/alice42

SELECT AllUsers

curl -X GET -H "Authorization:Bearer token" http://localhost:8080/API-Produits-et-Utilisateurs-1.0-SNAPSHOT/api/users

Authenticate

curl -X POST http://localhost:8080/API-Produits-et-Utilisateurs-1.0-SNAPSHOT/api/authenticate -H 'Authorization: Bearer token' -d 'username=charlie_brown&password=passw0rd'

Dossier comprenant les explications sur l'utilisation et les retours attendus Rapport API Frédéric EGENSCHEVILLER.docx 📁

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages