new-handler

Community

Add a robust HTTP API endpoint (hexagonal)

Authorguarzo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Enables teams to add a new HTTP API endpoint following the hexagonal architecture pattern, ensuring clean separation between adapters, domain services, and routing.

Core Features & Use Cases

  • Handler placement: add the new endpoint logic to the appropriate internal/adapters/httpserver/handlers/{domain}.go file.
  • Route wiring: register the new route in internal/adapters/httpserver/routes.go with the correct authentication level.
  • Data contracts & testing: define request/response types, implement handler tests using domain services, and utilize mocks for isolation.
  • Consistency & safety: ensure handlers delegate to domain services and avoid direct database access.

Quick Start

Create a new HTTP API endpoint following the hexagonal architecture pattern by adding a new handler, wiring its route, and implementing tests.

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: new-handler
Download link: https://github.com/guarzo/slabledger/archive/main.zip#new-handler

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.