Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions docs/projet/backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ API Volley fonctionne !
```

> Ça confirme que le serveur tourne et que Express répond.
>

<img src="./images/getApi.png" />

## **Tester la collection Users**

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

<img src="./images/getUsers.png" />

### POST create user

- Méthode : `POST`
Expand All @@ -358,8 +361,8 @@ API Volley fonctionne !
"email":"admin@clubvolley.fr",
"password":"MotDePasseSuperSecret",
"role":"admin",
"firstName":"Jean",
"lastName":"Dupont"
"firstName":"Test",
"lastName":"nom"
}
```

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


> MongoDB va créer automatiquement la base volley et la collection users.
>

<img src="./images/postUser.png" />

### GET single user

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

<img src="./images/getUser.png" />

### PUT update user

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

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

<img src="./images/putUser.png" />

### DELETE user

- Méthode : `DELETE`
- URL : `http://localhost:5000/api/users/<userId>`
- Send → utilisateur supprimé


<img src="./images/delUser.png" />
Binary file added docs/projet/images/delUser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/projet/images/getApi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/projet/images/getUser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/projet/images/getUsers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/projet/images/postUser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/projet/images/putUser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion docs/projet/scraping.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,4 +367,11 @@ Ex :

```bash
npm run scrape:ffvb
```
```


---

saison : 6985bb5d9903c98a455ca986
team : 6985bccd9903c98a455ca98b
champ : 6985bd859903c98a455ca98d