|
|
4 周之前 | |
|---|---|---|
| .. | ||
| app | 4 周之前 | |
| .dockerignore | 4 周之前 | |
| Dockerfile | 4 周之前 | |
| README.md | 4 周之前 | |
| app.py | 4 周之前 | |
| docker-compose.yml | 4 周之前 | |
| requirements.txt | 4 周之前 | |
This project is an OpenAPI-first Flask service using Connexion.
GET /healthPOST /echoGET /ioc/{value}GET /uiGET /openapi.jsoncd /Users/simplicoltd./projects/soc/flask-openapi-shuffle
docker compose up --build
Test quickly:
curl -s http://localhost:8000/health
curl -s -X POST http://localhost:8000/echo -H 'Content-Type: application/json' -d '{"message":"hello"}'
curl -s http://localhost:8000/ioc/8.8.8.8
In Shuffle App Creator / OpenAPI import, use one of these URLs:
http://localhost:8000/openapi.json (if Shuffle can reach your host localhost)http://host.docker.internal:8000/openapi.json (common when Shuffle runs in Docker on Mac/Windows)http://<your-host-ip>:8000/openapi.json (Linux Docker or remote host)