This project is a Next.js application that includes an API Component Builder, allowing users to create reusable components that interact with APIs. The main features of this project are:
- APIConnector: A reusable component for making API calls with built-in caching and error handling.
- APIComponentBuilder: A component for dynamically creating API-integrated components based on OpenAPI schemas.
- LegoBuilder: A drag-and-drop interface for building components using pre-defined blocks, including API connectors.
Located in src/components/APIConnector.tsx
, this component handles API requests with the following features:
- Caching of API responses
- Automatic retries on failure
- Error handling and loading states
Usage: