Refitter · JSON Structure

Refitter Output Structure

Structural documentation for what Refitter generates from an OpenAPI specification.

Type: Properties: 0
.NETC#Code GenerationOpenAPIRefitSource GeneratorType Safe

Refitter Output Structure is a JSON Structure definition published by Refitter.

Meta-schema:

JSON Structure

refitter-output-structure.json Raw ↑
{
  "name": "Refitter Output Structure",
  "description": "Structural documentation for what Refitter generates from an OpenAPI specification.",
  "version": "1.0",
  "outputs": {
    "refitInterface": {
      "description": "C# interface decorated with Refit attributes, one method per OpenAPI operation.",
      "example": "public interface IApiClient { [Get(\"/users\")] Task<IEnumerable<User>> GetUsersAsync(); }",
      "naming": {
        "default": "I{ApiTitle}Api",
        "configured": "Controlled by .refitter interfaceName setting"
      },
      "methodPattern": "{HttpMethod}Attribute + async Task<{ReturnType}> {OperationId}Async(parameters)"
    },
    "contractModels": {
      "description": "C# model classes or records representing OpenAPI schema components.",
      "generatedFrom": "components/schemas in OpenAPI spec",
      "typeStyles": ["Classes", "Records", "RecordsStruct"],
      "serialization": "System.Text.Json attributes via NJsonSchema"
    },
    "registrationFile": {
      "description": "Optional DI registration extension methods for Microsoft.Extensions.DependencyInjection.",
      "generatedWhen": "generateDependencyInjectionExtensions = true in .refitter"
    }
  },
  "inputs": {
    "openApiFormats": ["OpenAPI 2.0 (Swagger)", "OpenAPI 3.0", "OpenAPI 3.1"],
    "inputFormats": ["JSON", "YAML"],
    "sourceTypes": ["Local file path", "HTTP/HTTPS URL"]
  },
  "usageModes": {
    "cliTool": {
      "package": "dotnet-refitter",
      "command": "refitter [path-or-url] --namespace [ns] --output [file]",
      "installCommand": "dotnet tool install -g dotnet-refitter"
    },
    "sourceGenerator": {
      "package": "Refitter.SourceGenerator",
      "trigger": ".refitter configuration file in project",
      "msbuildIntegration": true
    }
  }
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/refitter-output-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.