@api-emulator/audible
v0.2.2
Published
Audible provides audiobook catalog, library, review, and wishlist API surfaces for local client compatibility tests.
Readme
@api-emulator/audible
Audible provides audiobook catalog, library, review, and wishlist API surfaces for local client compatibility tests.
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/audible- From this registry, start the emulator.
npx -p api-emulator api --plugin ./providers/@audible/api-emulator.mjs --service audibleThe emulator uses the local URL that api-emulator prints. Set your client base URL to this local URL.
Supported API
GET /1.0/catalog/productsGET /1.0/catalog/products/:asinGET /1.0/catalog/products/:asin/reviewsGET /1.0/libraryGET /1.0/library/:asinGET /1.0/wishlistPOST /1.0/wishlistDELETE /1.0/wishlist/:asinGET /audible/inspect/state
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.
audible:
# Add provider-specific seed state here.