Prompt file imported from robesonw/sampleT (
.github/prompts/migrate-config-table.prompt.md). Fill in{{apiName}}before use. Copyright stays with the author.
Migrate the legacy mock configuration for {{apiName}}
from our existing config-table/stored-proc service into API Simulation Platform.
This supports Principle 7 (migrate, never big-bang) — the legacy mocks must keep working while we move.
Steps:
- Use the
spec-ingestconfig-table importer to read the legacy entries and produce a validMockDefinition. Report anything that doesn't map cleanly. - Where the legacy mock relied on a data-prep stored proc, replace it with
data-enginedata pools or synthetic generation — capture the shapes the proc produced, not the SQL itself. - Mask any PII found in legacy sample data before persisting it.
- Produce the mock-as-code files and verify the migrated mock behaves equivalently to the legacy one for a few representative requests.
- Summarize: what migrated cleanly, what needs a human decision, and the diff vs. legacy behavior.
Do not reproduce stored-proc SQL. Do not break the legacy service.
