Skip to content

Commit 9cf8f53

Browse files
Update workflow-example.md
1 parent f3bb22d commit 9cf8f53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/workflow-example.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This document describes the full end-to-end workflow for the `vm.create` task in
99
A user (tenant or admin) sends a request to create a new virtual machine:
1010

1111
```bash
12-
POST /api/v1/admin/tasks
12+
POST /api/v1/{scope:admin|tenant}/tasks
1313
Content-Type: application/json
1414
Authorization: Bearer <JWT>
1515

@@ -37,7 +37,7 @@ Authorization: Bearer <JWT>
3737
## 2. API Gateway → Controller
3838
3939
### Middleware & context setup
40-
- **accessMode middleware**: sets `req.isAdmin = true`.
40+
- **accessMode middleware**: sets `req.isAdmin = true|false`.
4141
- **Envelope validation**: ensures presence of `kind`, `refId`, and `target`.
4242
- **Schema pre-validation**: uses `src/lib/schemas/task.js` (per action, e.g. `vm.create`).
4343
- **Tenant context resolution**:

0 commit comments

Comments
 (0)