mosenioring/back001/requests.http
2026-01-09 18:35:06 +01:00

56 lines
1.1 KiB
HTTP

### 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"
}