-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathAPI_EXAMPLES.http
More file actions
46 lines (38 loc) · 916 Bytes
/
API_EXAMPLES.http
File metadata and controls
46 lines (38 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# API_EXAMPLES.http
```markdown
# API Request Examples
### Authentication
```http
POST http://localhost:8000/api/auth/login
Content-Type: application/json
{
"email": "patient@example.com",
"password": "securePassword123!"
}
```
### Patient Management
```http
GET http://localhost:8000/api/patients/me
Authorization: Bearer {{token}}
```
### Doctor Availability
```http
POST http://localhost:8000/api/doctors/availability
Authorization: Bearer {{token}}
Content-Type: application/json
{
"start_time": "2024-03-01T09:00:00",
"end_time": "2024-03-01T17:00:00",
"recurring": true
}
```
### Appointment Booking
```http
POST http://localhost:8000/api/appointments
Authorization: Bearer {{token}}
Content-Type: application/json
{
"doctor_id": "550e8400-e29b-41d4-a716-446655440000",
"scheduled_time": "2024-03-05T14:30:00",
"reason": "Annual Checkup"
}