File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -288,3 +288,34 @@ See the `LICENSE` file for more information.
288288### 🏥 Built with ❤️ for Modern Healthcare Management
289289
290290Delivering secure, scalable healthcare APIs with cutting-edge technology.
291+
292+
293+
294+
295+ ### curl -X POST \
296+ http://localhost:8000/api/appointments \
297+ -H "Authorization: Bearer <token_jwt>" \
298+ -H "Content-Type: application/json" \
299+ -d '{
300+ "patient_id": 1,
301+ "doctor_id": 2,
302+ "date": "2025-12-01T10:00:00",
303+ "reason": "Consulta preventiva"
304+ }'
305+
306+ ### import requests
307+
308+ url = "http://localhost:8000/api/appointments "
309+ headers = {
310+ "Authorization": "Bearer <token_jwt>",
311+ "Content-Type": "application/json"
312+ }
313+ payload = {
314+ "patient_id": 1,
315+ "doctor_id": 2,
316+ "date": "2025-12-01T10:00:00",
317+ "reason": "Consulta preventiva"
318+ }
319+ response = requests.post(url, json=payload, headers=headers)
320+ print(response.status_code, response.json())
321+
You can’t perform that action at this time.
0 commit comments