cfs
REST proxy over drive-carsforsale GraphQL for listings and aggregate counts.
| Field | Value |
|---|
| Serverless service | drive-api-extcfs |
| Runtime | nodejs22.x, arm64 |
| Region | ap-southeast-2 |
| Deployed HTTP operations | 3 |
| Local worker harnesses | 0 |
| OpenAPI | /openapi/cfs.yaml · interactive |
Deployed routes
| Method | Path | Auth | Summary |
|---|
| GET | /ext/carsforsale | API key | List dealer stock listings |
| GET | /ext/carsforsale/counts | API key | Aggregate listing counts by group |
| GET | /ext/carsforsale/tribe | API key | List listings scoped to an editorial tribe |
Behaviour notes
- All three routes require an API key and call the drive-carsforsale GraphQL API.
/ext/carsforsale requires page, size, and type; size is capped at 1000 and listings require at least five images.
/ext/carsforsale/counts requires group and type; group is mapped to the GraphQL field and reverse-mapped in the response.
/ext/carsforsale/tribe requires page, size, and tribe; type defaults to new, used, and demo.
Source map
- services/cfs/serverless.yml
- services/cfs/functions/carsForSaleRest.ts
- services/cfs/functions/carsForSaleCountsRest.ts
- services/cfs/functions/carsForSaleByTribe.ts
- services/cfs/config/tribesConfig.ts