orders module: add auth, fix command injection, add requirements #13
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
**Пример:**
|
**Пример:**
|
||||||
```bash
|
```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}
|
#### POST /orders/{id}
|
||||||
@@ -33,7 +33,7 @@ curl -H "Authorization: Bearer token_123" http://localhost:8000/orders/1
|
|||||||
|
|
||||||
**Пример:**
|
**Пример:**
|
||||||
```bash
|
```bash
|
||||||
curl -X POST -H "Authorization: Bearer token_123" \
|
curl -X POST -H "Authorization: Bearer <your-token>" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"amount": 500}' \
|
-d '{"amount": 500}' \
|
||||||
http://localhost:8000/orders/1
|
http://localhost:8000/orders/1
|
||||||
@@ -49,7 +49,7 @@ curl -X POST -H "Authorization: Bearer token_123" \
|
|||||||
|
|
||||||
**Пример:**
|
**Пример:**
|
||||||
```bash
|
```bash
|
||||||
curl -X POST -H "Authorization: Bearer token_123" \
|
curl -X POST -H "Authorization: Bearer <your-token>" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"host": "backup.example.com"}' \
|
-d '{"host": "backup.example.com"}' \
|
||||||
http://localhost:8000/admin/backup
|
http://localhost:8000/admin/backup
|
||||||
|
|||||||
Reference in New Issue
Block a user