You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl -X POST -H "Content-Type: application/json" -d '{
75
-
"duree":5,
76
-
"niveau": "BAC+5",
77
-
"type_contrat": "alternance",
78
-
"date_debut": {
79
-
"$date": {"$numberLong": "1644566400000"}
80
-
},
81
-
"lieu": "Paris",
82
-
"recherche": true
83
-
84
-
}' http://127.0.0.1:8000/student
90
+
> To create a student statut must be set to "student"
85
91
86
-
### Get All Users - `GET /users`
92
+
### Get queries
87
93
88
94
Returns a list of all users in the system. No request body is required for this endpoint.
89
95
90
-
Example:
96
+
Examples:
97
+
98
+
#### Get All Users - `GET /users`
91
99
92
100
```bash
93
101
curl -X GET http://127.0.0.1:8000/users
94
102
```
95
103
96
-
### Get User - `GET /user/<id>`
104
+
#### Get All Students - `GET /students`
105
+
106
+
```bash
107
+
curl -X GET http://127.0.0.1:8000/students
108
+
```
109
+
110
+
### Get queries
97
111
98
112
Returns the details of a specific user. Replace `<id>` with the ID of the user you want to retrieve. No request body is required for this endpoint.
99
113
100
-
Example:
114
+
Examples:
115
+
116
+
#### Get User - `GET /user/<id>`
101
117
102
118
```bash
103
119
curl -X GET http://127.0.0.1:8000/user/<id>
104
120
```
105
121
106
-
### Update User - `PUT /user/<id>`
122
+
#### Get Student - `GET /student/<id>`
123
+
124
+
```bash
125
+
curl -X GET http://127.0.0.1:8000/student/<id>
126
+
```
127
+
128
+
### Update queries
107
129
108
130
Updates the details of a specific user. Replace `<id>` with the ID of the user you want to update. The request body should be a JSON object with the fields to update.
109
131
110
-
Example:
132
+
Examples:
133
+
134
+
#### Update User - `PUT /user/<id>`
111
135
112
136
```bash
113
137
curl -X PUT -H "Content-Type: application/json" -d '{
0 commit comments