rest-api-design-ai-kit

Standardize REST API URI and endpoint design for .NET microservice controllers.

Updated May 11, 2026
One-click install
npx skills add https://github.com/ducthang-hub/nw-ai-kit --skill rest-api-design-ai-kit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rest-api-design-ai-kit
Source: https://github.com/ducthang-hub/nw-ai-kit/tree/main/.agents/skills/rest-api-design-ai-kit
Command: npx skills add https://github.com/ducthang-hub/nw-ai-kit --skill rest-api-design-ai-kit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It solves inconsistent REST API design by enforcing safe, predictable URI patterns, naming conventions, versioning rules, and HTTP semantics that reduce bugs and information leakage.

Core Features & Use Cases

  • URI safety and correctness: Prevents exposing PII/sensitive data in paths or query strings and enforces no trailing slashes, lowercase paths, hyphens over underscores, and no file extensions.
  • Resource-oriented endpoint structure: Encourages plural resource names, noun-based endpoint naming, hierarchical relationships via path segments, and correct use of path parameters vs query filters.
  • Operational guidance for microservices: Applies request-body vs query-string selection for complex operations, recommends appropriate status codes, and standardizes API versioning in URL paths.

Quick Start

Ask the AI: "Review my proposed .NET controller routes and suggest corrected URIs, method choices, and parameter placement to match REST best practices, ensuring no sensitive data is exposed in the URL."

Frequently Asked Questions about rest-api-design-ai-kit

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

FAQPage Schema
How do I design consistent REST API endpoints in .NET microservices?

REST API URI naming conventions require using plural noun collections, noun-first endpoint structures, and hierarchical relationships via path segments. This resource-oriented approach prevents naming drift and ensures predictable routing across microservices.

What are the best REST API URI naming conventions to prevent routing bugs?

REST API URI naming conventions require using plural noun collections, noun-first endpoint naming, and hierarchical path segments. This resource-oriented structure prevents naming drift and ensures predictable routing across microservices.

How do I safely handle PII in REST API URL design?

Safely handle PII in REST API URL design by never exposing sensitive data in paths or query strings. Enforce safe URL patterns by using request bodies for complex operations and query strings strictly for filtering and pagination.

When should I use query strings vs path parameters for REST API filtering?

Use query strings for REST API filtering and pagination, reserving path parameters for hierarchical resource identification. Select request-body over query-string usage when handling complex operations to maintain operational clarity.

What is the correct HTTP method usage for REST API resource operations?

Correct HTTP method usage for REST API resource operations involves choosing appropriate verbs for actions and recommending corresponding status codes. This standardizes HTTP semantics and reduces bugs in microservice controllers.

Does this REST API design guidance apply to non-.NET microservices?

While the REST API design guidance applies directly to .NET microservice controllers, the underlying rules for URI safety, pluralization, and API versioning are universal REST best practices applicable across any framework.