Skip to content

Commit 2adb9aa

Browse files
Merge pull request #2 from izak1404/feature/melhorias
alterações no readme
2 parents d59db99 + 20ce483 commit 2adb9aa

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,3 +288,34 @@ See the `LICENSE` file for more information.
288288
### 🏥 Built with ❤️ for Modern Healthcare Management
289289

290290
Delivering 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+

0 commit comments

Comments
 (0)