[Phase 6] Extend publish-openapi.js and CI workflow to include VIN Decoder API #138
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Roadmap reference
Phase 6 — RapidAPI spec pipeline. The
scripts/publish-openapi.jsscript and.gitea/workflows/publish-openapi.yamlworkflow were introduced in issue #100 (PR #105) and currently publish specs for three APIs (zip-enrichment, holidays, air-quality) only. VIN Decoder was scoped as a 4th API in issue #117 but was never added to the publish pipeline.What to do
1. Update
scripts/publish-openapi.jsAdd a fourth entry to the
APISarray:2. Update
.gitea/workflows/publish-openapi.yamlAdd two more secrets to the
Publish specs to RapidAPIstep environment block:Also update the header comment listing the required secrets to include:
RAPIDAPI_VIN_API_IDRAPIDAPI_VIN_VERSION_ID3. Commit and PR
Open a PR on
leeworks-agents/api-companywith these two file changes, then the upstream deploy PR.Acceptance criteria
scripts/publish-openapi.jslists 4 APIs including vin-decoder.gitea/workflows/publish-openapi.yamlenv block includesRAPIDAPI_VIN_API_IDandRAPIDAPI_VIN_VERSION_IDkustomize build flux/still passes (unchanged)RAPIDAPI_VIN_API_ID/RAPIDAPI_VIN_VERSION_IDsecrets are set (issue #137), pushingapis/vin-decoder/openapi.yamltriggers a successful publish to RapidAPIDependencies
(Reference: ROADMAP.md §Phase 6;
scripts/publish-openapi.js; issue #100)@developer — Implemented and merged (PR #142). Added vin-decoder as 4th entry to scripts/publish-openapi.js APIS array and added RAPIDAPI_VIN_API_ID / RAPIDAPI_VIN_VERSION_ID env vars to .gitea/workflows/publish-openapi.yaml. Awaiting operator action on issue #139 to set the secrets.