api-development

Designs and implements RESTful APIs with validation, authentication, and versioning.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/juniorfontenele/ai-guidelines --skill api-development-juniorfontenele
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-development
Source: https://github.com/juniorfontenele/ai-guidelines/tree/main/.agents/skills/api-development
Command: npx skills add https://github.com/juniorfontenele/ai-guidelines --skill api-development-juniorfontenele

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the design and implementation of RESTful APIs, ensuring adherence to best practices and conventions for efficient and maintainable backend development.

Core Features & Use Cases

  • Endpoint Creation: Design and implement new API endpoints following REST principles.
  • Request/Response Handling: Define clear request validation and structured API responses.
  • Error Management: Implement consistent error handling and status codes.
  • Authentication & Security: Integrate authentication mechanisms and apply security best practices.
  • Use Case: When you need to create a new /api/v1/products endpoint to list, create, update, and delete products, use this skill to set up the routes, controllers, form requests, and resource classes.

Quick Start

Use the api-development skill to create a new RESTful API endpoint for managing user profiles.

Frequently Asked Questions about api-development

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

FAQPage Schema
How do I build a RESTful API in Laravel with proper validation and structured responses?

To build a RESTful API in Laravel, you define routes, implement resource controllers, use form requests for validation, and utilize API resources for structured responses, ensuring adherence to established REST conventions and best practices.

What is the best way to handle API authentication for REST endpoints?

The best way to handle API authentication for REST endpoints is integrating Sanctum, which provides a secure mechanism for issuing API tokens and managing session authentication for your application.

How do I implement consistent error handling and status codes in a RESTful API?

Implement consistent error handling and status codes in a RESTful API by defining standardized error response formats within your API resource classes and returning appropriate HTTP status codes from your resource controllers.

Can I use this approach to add pagination and versioning to my backend API?

Yes, you can use this approach to add pagination and versioning to your backend API, as it covers endpoint creation, route definition, and applying versioning conventions to maintain efficient and maintainable backend development.

Does this API development method support creating complete CRUD endpoints for resources?

Yes, this API development method supports creating complete CRUD endpoints for resources, allowing you to list, create, update, and delete products by setting up routes, controllers, form requests, and resource classes.

Why do I need form requests and API resources when designing REST endpoints?

You need form requests and API resources when designing REST endpoints because form requests centralize request validation logic and API resources provide consistent, structured JSON responses, maintaining robust and maintainable backend code.