@api-emulator/apple-media
v0.2.2
Published
Apple Media provides iTunes Search, App Store storefront metadata, Apple Books audiobook charts, RSS feeds, and deterministic artwork fixtures.
Readme
@api-emulator/apple-media
Apple Media provides iTunes Search, App Store storefront metadata, Apple Books audiobook charts, RSS feeds, and deterministic artwork fixtures.
Use this emulator for local tests, CI, and offline agent runs. It keeps your tests separate from the production API.
Start the emulator
- Install the package.
npm install @api-emulator/apple-media- From this registry, start the emulator.
npx -p api-emulator api --plugin ./providers/@apple-media/api-emulator.mjs --service apple-mediaThe emulator uses the local URL that api-emulator prints. Set your client base URL to this local URL.
Supported API
GET /searchGET /api/v2/us/audio-books/top/:limit/audio-books.jsonGET /fixtures/audiobook-covers/:id/:sizeGET /lookupGET /v1/app-store/searchGET /v1/app-store/lookupGET /v1/app-store/storefrontGET /:store/app/id:appId
Coverage
- Level:
smoke-only - Meaning: A smoke test starts the emulator and checks its main behavior.
- Evidence: a direct smoke test exists, but a conformance manifest does not exist.
Credentials
You do not need production credentials. Use fixed local credentials if your client requires them.
Test data
Add repeatable test data to the provider configuration.
apple-media:
# Add provider-specific seed state here.