api-development

Design and implement secure .NET 8 Web API endpoints with EF Core, JWT, and RBAC.

Updated Nov 15, 2025
One-click install
npx skills add https://github.com/CowboyLogic/ai-dev --skill api-development-cowboylogic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-development
Source: https://github.com/CowboyLogic/ai-dev/tree/main/docs/tools/opencode/emulating-claude/skills/api-development
Command: npx skills add https://github.com/CowboyLogic/ai-dev --skill api-development-cowboylogic

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines the design, implementation, and testing of secure .NET 8 Web API endpoints with strong data access and authorization for the Happy Camper Planner project.

Core Features & Use Cases

  • API Controller scaffolding for .NET 8 with Entity Framework Core and PostgreSQL.
  • JWT authentication & RBAC integration to enforce role-based permissions.
  • Clean Architecture pattern: Domain/Controllers/Infrastructure separation for maintainability.
  • Docker-based development environment setup for consistent local runs.
  • API testing scaffolding including basic tests and validation of endpoints.

Quick Start

Create a new API endpoint scaffold with a controller, EF Core context, and JWT authentication for your chosen domain model.

Frequently Asked Questions about api-development

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

FAQPage Schema
How do I build secure .NET 8 Web API endpoints with JWT authentication and RBAC?

To build secure .NET 8 Web API endpoints, you scaffold controllers with Entity Framework Core, implement JWT claim retrieval, and enforce role-based permissions. This approach separates Domain, Controllers, and Infrastructure layers to maintain clean architecture and robust authorization.

What's the best way to set up Entity Framework Core with PostgreSQL in a .NET 8 API?

The best way to set up EF Core with PostgreSQL in a .NET 8 API is by configuring your database context within a Clean Architecture pattern. You define your data access in the Infrastructure layer and use Docker-based development environments to ensure consistent local runs across your application.

Can I use Docker for local development when creating .NET 8 Web APIs?

Yes, you can use Docker for local development when creating .NET 8 Web APIs. Setting up a Docker-based development environment ensures consistent local runs across your team, allowing you to seamlessly run PostgreSQL databases and scaffold API endpoints without local configuration conflicts.

How do I test API endpoints in a .NET 8 Clean Architecture project?

To test API endpoints in a .NET 8 Clean Architecture project, you implement API testing scaffolding that validates endpoint behavior and robust data access. This includes writing basic tests for controllers and validating JWT authentication flows across Plans, Trips, Users, and Reservations domains.

When do I need role-based permissions in a .NET 8 Web API?

You need role-based permissions in a .NET 8 Web API when securing domain models like Users and Reservations. Implementing RBAC alongside JWT claim retrieval ensures that only authorized users can access specific endpoints, satisfying strict technical requirements for secure data access.

Does this .NET 8 API approach enforce separation between domain controllers and infrastructure?

Yes, this .NET 8 API approach enforces Clean Architecture separation between Domain, Controllers, and Infrastructure layers. This structural separation ensures maintainability, isolates business logic from data access, and streamlines the implementation of secure Web API endpoints with EF Core.