http-server
БесплатноБез исполняемых скриптовНе проверенUse when working on Recyclarr.Server or its HTTP API: FastEndpoints endpoints and DTOs, routes and REST resources, API versioning, OpenAPI spec generation and…
от recyclarr★ 2 180 звёзд на GitHubОб этом скилле
HTTP Server
Recyclarr.Server is a thin HTTP layer over Core. Endpoints receive requests, call through port interfaces into Core, and return responses. No business logic in the server project.
Route Conventions
Rationale and the full resource model live in ADR-011; config representation in ADR-012. The rules:
/api/{version}/{namespace?}/{resource}[/{id}/{resource}[/{id}...]]
- Path versioning:
/api/v1/.... API version is independent from application semver. - Namespaces (
sync/,guide/{service}/) group resources and NEVER resolve;GET /api/v1/sync404s. One namespace level max. {service}is a closed enum (radarr|sonarr), not a collection id.- Collections are plural and id-addressable (
instances/{name}). Singletons are singular with no id (sync/schedule). Test: can more than one exist? - Kebab-case resource names (
custom-formats). - Instance names are globally unique (config validation enforces this);
/instances/{name}relies on it. - No DELETE with a request body; bulk deletes are per-item calls in a client loop.
- Probes and metrics live only on the management port (ADR-029), excluded from the OpenAPI spec.
Everything under
/apirequires the API key. - All error responses use RFC 9457 Problem Details.
- Collections return an object wrapping
*SummaryResponseitems; each item has a stable id for a future/{id}route (ADR-011). - Response DTOs are domain-shaped, never YAML-shaped. Secrets (e.g.
api_key) are absent from DTOs, not masked. - An outcome appears under the resource it affects, even when repeated; responses never reference resources elsewhere by identity (ADR-016).
API Evolution
Clients built against an older spec MUST keep working against a newer server within one API version (versioning rules: ADR-016).
- Model a value set that can grow as a
string, never anenum; generated clients may switch exhaustively, so a new enum member breaks them. Closed sets ({service}) may stay enums. - Make changes additive: new optional properties, collections, or discriminator values. Removing, renaming, or changing a field's meaning needs a new API version.
- Polymorphic types fall back to their base type for unknown discriminators; consumers MUST handle that base type without throwing.
- Sync outcomes use the envelope (ADR-016): a new outcome is a code in
OutcomeCodesplus a case inOutcomeResponseMapper, never a new DTO or named collection. Choose its severity by ADR-033.
Long-Running Operations
Model as job resources, never verb endpoints (ADR-011):
- Trigger = create:
POST /api/v1/sync/jobsreturns 202 +Location: /api/v1/sync/jobs/{id} GET .../jobs/{id}always returns 200; the bodystatustells clients whether to keep polling, andRetry-Afteris set while the job is active (ADR-016)- The snapshot is cumulative (per-instance, per-operation); a slow or skipped poll loses nothing
- Polling only; no SSE
- Large result payloads belong on a sub-resource (
GET .../jobs/{id}/results), never on the polled job resource (ADR-016); DTOs are shaped for what consumers render, not mirrors of domain types - Result value objects hold only plan state; identity and reason sit beside them (ADR-016)
- "Is one running" = filter the jobs collection, never a singleton status resource
FastEndpoints
One class per endpoint, auto-discovered. Request/response DTOs co-located with the endpoint.
public class GetWidget : Endpoint<GetWidgetRequest, WidgetResponse>
{
public override void Configure()
{
Get("/widgets/{id}");
}
public override async Task HandleAsync(GetWidgetRequest req, CancellationToken ct)
{
// Call through port interface, not direct domain access
var widget = await widgetPort.Get(req.Id, ct);
await SendAsync(widget);
}
}
Feature Slice Structure
Features/
Widgets/
GetAll/
Endpoint.cs
Models.cs ← request/response DTOs
Get/
Endpoint.cs
Models.cs
No Mapper.cs or Data.cs; that logic lives in Core.
Versioning (Release Group Strategy)
An endpoint's folder sets its API version (ApiVersions): a V{N}/ folder is version N,
anything else is version 1. Endpoints MUST NOT call Version(). Only the changed endpoint gets a
new class in a V2/ subfolder, at the same route; the first one creates the v2 OpenAPI document
and its reference page. Each version's document includes the latest version (<= N) of every
endpoint, so unchanged endpoints keep their v1 routes in it.
Features/
Orders/
Create/
Endpoint.cs ← v1
Models.cs
V2/
Endpoint.cs ← breaking change only
Models.cs
OpenAPI Spec Workflow
Specs are committed to source control in src/Recyclarr.Server/: Recyclarr.Server.json for v1
and Recyclarr.Server_v{N}.json for later versions (names fixed by the build tool). Build-time
generation outputs to the project dire
Установить http-server в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл http-server?
Use when working on Recyclarr.Server or its HTTP API: FastEndpoints endpoints and DTOs, routes and REST resources, API versioning, OpenAPI spec generation and API reference text, Kestrel hosting and the serve command, or httpyac files under `http/`.
Как установить скилл http-server?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл http-server запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic