orders module: add auth, fix command injection, add requirements #13
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user