56 lines
1.1 KiB
Plaintext
56 lines
1.1 KiB
Plaintext
|
|
### Local tenant setup (use local profile + headers)
|
||
|
|
POST http://localhost:8080/api/v1/tenants
|
||
|
|
X-Local-User: admin
|
||
|
|
X-Local-Tenant: tenant-demo
|
||
|
|
X-Local-Roles: ADMIN
|
||
|
|
Content-Type: application/json
|
||
|
|
|
||
|
|
{
|
||
|
|
"name": "Demo Tenant"
|
||
|
|
}
|
||
|
|
|
||
|
|
### Invite user
|
||
|
|
POST http://localhost:8080/api/v1/users/invite
|
||
|
|
X-Local-User: admin
|
||
|
|
X-Local-Tenant: tenant-demo
|
||
|
|
X-Local-Roles: ADMIN
|
||
|
|
Content-Type: application/json
|
||
|
|
|
||
|
|
{
|
||
|
|
"email": "doc@example.com",
|
||
|
|
"role": "DOCTOR"
|
||
|
|
}
|
||
|
|
|
||
|
|
### Create patient
|
||
|
|
POST http://localhost:8080/api/v1/patients
|
||
|
|
X-Local-User: admin
|
||
|
|
X-Local-Tenant: tenant-demo
|
||
|
|
X-Local-Roles: ADMIN
|
||
|
|
Content-Type: application/json
|
||
|
|
|
||
|
|
{
|
||
|
|
"fullName": "Jane Doe"
|
||
|
|
}
|
||
|
|
|
||
|
|
### Create medication plan
|
||
|
|
POST http://localhost:8080/api/v1/patients/{patientId}/medications
|
||
|
|
X-Local-User: admin
|
||
|
|
X-Local-Tenant: tenant-demo
|
||
|
|
X-Local-Roles: ADMIN
|
||
|
|
Content-Type: application/json
|
||
|
|
|
||
|
|
{
|
||
|
|
"description": "Take 5mg daily"
|
||
|
|
}
|
||
|
|
|
||
|
|
### Test notification
|
||
|
|
POST http://localhost:8080/api/v1/notifications/test
|
||
|
|
X-Local-User: admin
|
||
|
|
X-Local-Tenant: tenant-demo
|
||
|
|
X-Local-Roles: ADMIN
|
||
|
|
Content-Type: application/json
|
||
|
|
|
||
|
|
{
|
||
|
|
"message": "Test notification"
|
||
|
|
}
|