A lightweight client-side API caller built on top of axios, designed to simplify REST API interactions in React applications. Current stable version is 0.0.9 with no active development since 2019. It provides a declarative API config pattern using Endpoint and Request enums, and a RestClient.call() method for making requests. Differentiators include built-in URI parameter substitution via curly braces and a proxy configuration for development. However, the library has severe limitations: it depends on an outdated axios version (^0.18.0), lacks TypeScript definitions, and has no documentation on error handling or response interceptors. The project appears to be in maintenance mode with no recent updates, and the peer dependency on axios 0.18 introduces known security vulnerabilities (CVE-2021-3749).
npm install axios-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to define API endpoints with Endpoint and Request, then call them using RestClient.call() with URI parameters.
Upgrade to a newer version of axios (or use a different library) as axios-client does not support newer axios.
Consider using axios directly or a maintained wrapper like axios-retry or openapi-client.
For other setups, configure a proxy via webpack devServer or a dedicated proxy library.
Use axios directly for advanced use cases; this library is only for simple CRUD operations.
Only use Request.GET, POST, PUT, DELETE as defined.
Run 'npm install axios-client' or 'yarn add axios-client' and ensure import uses package name, not relative path.
Use 'import { Request } from 'axios-client''.Add a proxy in package.json: "proxy": "http://api.example.com".
Ensure 'import { RestClient } from 'axios-client'' and check that the package version supports it.