refactor to remove config_files in favor of db
This commit is contained in:
@@ -607,7 +607,7 @@ curl -X DELETE http://localhost:5000/api/configs/test-network.yaml \
|
||||
# Trigger a scan
|
||||
curl -X POST http://localhost:5000/api/scans \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"config_file": "/app/configs/prod-network.yaml"}' \
|
||||
-d '{"config_id": "/app/configs/prod-network.yaml"}' \
|
||||
-b cookies.txt
|
||||
|
||||
# List all scans
|
||||
@@ -639,7 +639,7 @@ curl -X POST http://localhost:5000/api/schedules \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"name": "Daily Production Scan",
|
||||
"config_file": "/app/configs/prod-network.yaml",
|
||||
"config_id": "/app/configs/prod-network.yaml",
|
||||
"cron_expression": "0 2 * * *",
|
||||
"enabled": true
|
||||
}' \
|
||||
|
||||
Reference in New Issue
Block a user