返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Backend API Integration

为Laravel项目生成可用于生产的基于Saloon的API集成,包括连接器类、请求类、只读DTO、具有全面错误处理的服务层方法以及完整的Pest测试套件。当使用Saloon集成外部API、创建API请求/响应处理器、向现有服务添加新的API端点、为第三方服务构建API客户端封装器或设置带有适当错误处理和测试的API通信时,请使用此技能。此技能适用于在app/Services/Api/、app/DataTransferObjects/Api/文件夹中工作,创建Saloon连接器和请求、实现API服务方法或编写API集成测试时。

person作者: jakexiaohubgithub

Backend API Integration

When to use this skill

  • When integrating a new external API endpoint using Saloon in your Laravel project
  • When adding new requests to an existing Saloon connector
  • When creating API client wrappers for third-party services (payment gateways, shipping providers, etc.)
  • When building DTOs for API request/response data structures
  • When implementing service layer methods that call external APIs
  • When writing comprehensive Pest tests for API integrations with mocking
  • When working on files in app/Services/Api/ directory
  • When creating or editing Saloon connector classes (e.g., ExampleApiConnector.php)
  • When creating or editing Saloon request classes (e.g., GetUserRequest.php)
  • When creating DTOs in app/DataTransferObjects/Api/ directory

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle backend API integration.

Instructions

For details, refer to the information provided in this file: backend API integration