Developer Guide — apigee2mulesoft
1. Register the policy type
# models.py
class PolicyType(str, Enum):
VERIFY_API_KEY = "VerifyAPIKey"
SPIKE_ARREST = "SpikeArrest" # add here
UNKNOWN = "Unknown"
# pipeline.py — _RAG_STUBS dict
PolicyType.SPIKE_ARREST: Candidate(
mulesoft_equiv="throttling:rate-limit",
retrieval_score=0.85,
notes="Maps SpikeArrest to Mulesoft rate-limit policy",
),
3. Add a sample policy XML under samples/apigee-bundle/apiproxy/policies/ for manual testing.
python src/cli.py samples/apigee-bundle --output /tmp/out
cat /tmp/out/migration-report.md