Skip to content

Commit 4adbe76

Browse files
authored
Merge pull request #105 from RustyRory/feat/98-scraping-prep
feat(backend): Fixes #98 - Ajout données
2 parents de93ec1 + fce3f6e commit 4adbe76

8 files changed

Lines changed: 23 additions & 5 deletions

File tree

docs/projet/backend.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ API Volley fonctionne !
337337
```
338338

339339
> Ça confirme que le serveur tourne et que Express répond.
340-
>
340+
341+
<img src="./images/getApi.png" />
341342

342343
## **Tester la collection Users**
343344

@@ -347,6 +348,8 @@ API Volley fonctionne !
347348
- URL : `http://localhost:5000/api/users`
348349
- Send → un tableau vide `[]` si aucun utilisateur n’existe encore
349350

351+
<img src="./images/getUsers.png" />
352+
350353
### POST create user
351354

352355
- Méthode : `POST`
@@ -358,8 +361,8 @@ API Volley fonctionne !
358361
"email":"admin@clubvolley.fr",
359362
"password":"MotDePasseSuperSecret",
360363
"role":"admin",
361-
"firstName":"Jean",
362-
"lastName":"Dupont"
364+
"firstName":"Test",
365+
"lastName":"nom"
363366
}
364367
```
365368

@@ -369,7 +372,8 @@ API Volley fonctionne !
369372

370373

371374
> MongoDB va créer automatiquement la base volley et la collection users.
372-
>
375+
376+
<img src="./images/postUser.png" />
373377

374378
### GET single user
375379

@@ -378,6 +382,8 @@ API Volley fonctionne !
378382
- `<userId>` → l’ID retourné lors du POST
379383
- Send → infos du user (sans le password)
380384

385+
<img src="./images/getUser.png" />
386+
381387
### PUT update user
382388

383389
- Méthode : `PUT`
@@ -393,8 +399,13 @@ API Volley fonctionne !
393399

394400
- Send → succès, l’utilisateur est mis à jour
395401

402+
<img src="./images/putUser.png" />
403+
396404
### DELETE user
397405

398406
- Méthode : `DELETE`
399407
- URL : `http://localhost:5000/api/users/<userId>`
400408
- Send → utilisateur supprimé
409+
410+
411+
<img src="./images/delUser.png" />

docs/projet/images/delUser.png

76.8 KB
Loading

docs/projet/images/getApi.png

69.4 KB
Loading

docs/projet/images/getUser.png

93 KB
Loading

docs/projet/images/getUsers.png

70.4 KB
Loading

docs/projet/images/postUser.png

72.8 KB
Loading

docs/projet/images/putUser.png

66.8 KB
Loading

docs/projet/scraping.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,4 +367,11 @@ Ex :
367367

368368
```bash
369369
npm run scrape:ffvb
370-
```
370+
```
371+
372+
373+
---
374+
375+
saison : 6985bb5d9903c98a455ca986
376+
team : 6985bccd9903c98a455ca98b
377+
champ : 6985bd859903c98a455ca98d

0 commit comments

Comments
 (0)