medium
REST API Client
A client to interact with REST APIs with proper error handling
📝 Contenu du Prompt
Create a reusable API client class that simplifies making requests to REST APIs. The class should handle GET, POST, PUT, DELETE requests with proper error handling, support for headers, authentication tokens, request/response interceptors, and automatic retry logic for failed requests.