external-api-refit

Community

Type-safe, resilient external API integration.

Authordiegoknsk
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides a clean, type-safe way to consume external REST APIs in .NET by leveraging Refit, reducing boilerplate and centralizing error handling.

Core Features & Use Cases

  • Refit interfaces for contracts (request/response) as records with JsonPropertyName attributes
  • Resilience via AddStandardResilienceHandler() to enable retry, circuit breaker, and timeouts
  • Map ApiException to domain exceptions to avoid leaking implementation details
  • Logging of external calls (start, success, error with status code)
  • Dependency injection wiring and a typical service wrapper implementing a Port

Quick Start

Configure a Refit client with AddStandardResilienceHandler, implement a wrapper service that maps ApiException to domain exceptions, and register it in DI.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: external-api-refit
Download link: https://github.com/diegoknsk/video-processing-engine-video-management-lambda/archive/main.zip#external-api-refit

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.