add-endpoint

Generate HTTP endpoints with handler, validation, routing, and testing templates for Kotlin/Ktor.

Updated Jun 26, 2022
One-click install
npx skills add https://github.com/evengul/mc-org --skill add-endpoint-evengul
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-endpoint
Source: https://github.com/evengul/mc-org/tree/main/.claude/skills/add-endpoint
Command: npx skills add https://github.com/evengul/mc-org --skill add-endpoint-evengul

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured template to streamline the creation of new HTTP endpoints within the MC-ORG application, reducing boilerplate code and ensuring consistency.

Core Features & Use Cases

  • Endpoint Generation: A comprehensive guide covering handler functions, validation, business logic, routing, and testing.
  • Standardized Patterns: Offers both standard and parallel processing patterns for handler functions.
  • Use Case: A developer needs to add a new API endpoint to manage user profiles. They can use this Skill to quickly generate all the necessary code components, from request handling to database interaction and testing.

Quick Start

Follow the step-by-step instructions in the SKILL.md file to add a new HTTP endpoint.

Frequently Asked Questions about add-endpoint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new HTTP endpoint in Kotlin Ktor?

To create a new HTTP endpoint in Kotlin Ktor, follow a structured template covering handler functions, routing, validation, business logic, and testing to ensure consistent API development and reduce boilerplate.

What's the best way to structure API endpoints in a Kotlin backend?

The best way to structure API endpoints in a Kotlin backend is to use standardized patterns for handler functions, including both standard and parallel processing patterns, ensuring consistent and efficient API development.

Does this endpoint template include authorization and validation?

Yes, this endpoint template includes authorization and validation. It provides a comprehensive step-by-step guide covering handler functions, routing, business logic, authorization, testing, and HTMX integration.

Can I integrate HTMX when adding a new API endpoint with Ktor?

Yes, you can integrate HTMX when adding a new API endpoint with Ktor. The endpoint generation template explicitly covers HTMX integration alongside routing, validation, and business logic components.

How do I test new HTTP endpoints generated for a Kotlin backend?

To test new HTTP endpoints generated for a Kotlin backend, use the testing components included in the endpoint generation template, which covers everything from request handling to database interaction and testing.

Why use a template for backend API development in Ktor?

You use a template for backend API development in Ktor to reduce boilerplate code and ensure consistency. It streamlines the creation of new HTTP endpoints by providing standardized patterns for all necessary code components.