restful-api

Enforces OpenAPI 3 design-first contracts with versioning, pagination, and RFC 9457 errors in ASP.NET Core.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/tassosgomes/poc-iam-service --skill restful-api-tassosgomes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: restful-api
Source: https://github.com/tassosgomes/poc-iam-service/tree/main/.github/skills/common/restful-api
Command: npx skills add https://github.com/tassosgomes/poc-iam-service --skill restful-api-tassosgomes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The skill defines and enforces consistent REST/HTTP API design using OpenAPI 3, a design-first approach, versioning in URLs, standard URL conventions, default pagination, and RFC 9457-compliant error handling to improve API usability and reliability.

Core Features & Use Cases

  • Design-first contract guidance using OpenAPI 3 to guide API development and documentation.
  • Enforce versioning in the URI path and kebab-case resource naming for predictable routing.
  • Apply default pagination with _page and _size and provide a consistent paginated response shape.
  • Standardize error responses as RFC 9457 Problem Details to improve error observability.
  • Integrate with ASP.NET Core tooling (Swashbuckle) to generate and explore OpenAPI docs.

Quick Start

Draft an OpenAPI 3 contract and implement the API to match it.

Frequently Asked Questions about restful-api

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

FAQPage Schema
How do I standardize REST API error responses using RFC 9457?

Standardize REST API error responses by formatting failures as RFC 9457 Problem Details. This provides a consistent error shape, improving API observability and client error handling across services.

What is OpenAPI design-first API development and how does it work?

OpenAPI design-first API development involves drafting an OpenAPI 3 contract before writing code. This approach guides API development and documentation, ensuring the implementation matches the standardized contract.

How do I apply path-based versioning and kebab-case routing in ASP.NET Core APIs?

Apply path-based versioning and kebab-case routing in ASP.NET Core APIs by enforcing these conventions through an OpenAPI 3 contract. This ensures predictable resource routing and consistent URI paths across services.

Does this approach support default pagination with _page and _size query parameters?

Yes, this approach supports default pagination using _page and _size query parameters. It enforces a consistent paginated response shape to improve API usability and reliability for large data sets.

Can I generate OpenAPI documentation in ASP.NET Core using Swashbuckle with a design-first contract?

Yes, you can integrate with ASP.NET Core tooling like Swashbuckle to generate and explore OpenAPI docs. This validates that your design-first contracts align properly with the implemented JSON payloads and status codes.

What is the best way to standardize REST API design across multiple services?

The best way to standardize REST API design across services is enforcing an OpenAPI 3 design-first contract. This dictates path-based versioning, kebab-case naming, default pagination, and RFC 9457-compliant error handling.