Talking to APIs doesn't have to be awkward anymore. Low-fat wrapper for the amazing Axios HTTP client library. All responses follow the same flow: success and failure alike. Responses have a problem property to help guide exception flow, attach functions that get called each request, attach functions that change all request or response data. Detects connection issues (on React Native). The only required property is baseURL and it should be the starting point for your API. It can contain a sub-path and a port as well. The responses are promise-based, so you'll need to handle things in a .then() function. The promise is always resolved with a response object. Even if there was a problem with the request! This is one of the goals of this library. It ensures sane calling code without having to handle .catch and has 2 separate flows.

Features

  • Low-fat wrapper for the amazing axios http client library
  • All responses follow the same flow: success and failure alike
  • Responses have a problem property to help guide exception flow
  • Attach functions that get called each request
  • Attach functions that change all request or response data
  • Detects connection issues (on React Native)

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Apisauce

Apisauce Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Apisauce!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Security Software, JavaScript Software Development Software, JavaScript HTTP Clients

Registered

2022-03-17