orders module: add auth, fix command injection, add requirements #13

Merged
testclient-admin merged 15 commits from feature/orders-module into main 2026-08-25 03:44:38 +00:00
Showing only changes of commit 4098606aff - Show all commits
+3 -3
View File
@@ -24,7 +24,7 @@
**Пример:**
```bash
curl -H "Authorization: Bearer token_123" http://localhost:8000/orders/1
curl -H "Authorization: Bearer <your-token>" http://localhost:8000/orders/1
```
#### POST /orders/{id}
@@ -33,7 +33,7 @@ curl -H "Authorization: Bearer token_123" http://localhost:8000/orders/1
**Пример:**
```bash
curl -X POST -H "Authorization: Bearer token_123" \
curl -X POST -H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{"amount": 500}' \
http://localhost:8000/orders/1
@@ -49,7 +49,7 @@ curl -X POST -H "Authorization: Bearer token_123" \
**Пример:**
```bash
curl -X POST -H "Authorization: Bearer token_123" \
curl -X POST -H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{"host": "backup.example.com"}' \
http://localhost:8000/admin/backup