create-webapi

Community

Generate Directum WebAPI endpoints with DTOs

Authordunaevdmitriys-dev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you create Directum RX WebAPI endpoints that return correctly shaped DTOs (or structured ICommonResponse), with guidance on request method choice, patterns from existing modules, and optional role-based access checks.

Core Features & Use Cases

  • Endpoint creation guide (GET/POST): Implements the expected Directum WebAPI patterns using Public(WebApiRequestType = ...) functions.
  • DTO and MTD alignment: Shows how to define cross-module DTOs via PublicStructures in Module.mtd and generate corresponding ModuleStructures.cs.
  • Practical role checking & response handling: Recommends role validation patterns (e.g., Users.Current.IncludedIn(guid)) and safe response/error behavior using ICommonResponse or JSON strings.

Quick Start

Tell the AI: “Create a Directum RX WebAPI POST endpoint for module ESM with function GetAvailableServices, validate role checks if needed, and generate the matching DTO in Module.mtd and ModuleStructures.cs.”

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: create-webapi
Download link: https://github.com/dunaevdmitriys-dev/directum-mcp-server/archive/main.zip#create-webapi

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.