Aurelia-api (v3.2.1) is a plugin for the Aurelia framework that wraps aurelia-fetch-client to provide a simplified API for multiple endpoints. It offers CRUD operations, criteria support, default headers, interceptors, and integrates well with Sails.js. Active maintenance. Key differentiator: automatic body serialization based on Content-Type, and endpoint management layer over fetch-client.
npm install aurelia-apiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows minimal setup: inject Config, get endpoint, perform a GET request.
Add 'aurelia-fetch-client', 'extend' to your build dependencies.
Set Content-Type header explicitly when sending form data.
Use .get() instead of .find() for consistency.
Ensure config.registerEndpoint('api', '/path') is called before getEndpoint.Verify the registered endpoint path and HTTP method (find uses GET by default).
Ensure the class is decorated with @inject(Config) and registered as a dependency.
No dependency data recorded yet.