What problem does it solve?
This Skill eliminates the risk of missing or incorrect OpenAPI v3 annotations for OrangeHRM REST endpoints and models, which cause CI build failures and produce inaccurate, unreliable API documentation for consumers.
Core Features & Use Cases
- OpenAPI Annotation Reference: Provides detailed guidance for zircote/swagger-php annotations on endpoint handler methods and Model classes, including required fields, naming conventions, and PHP constant usage.
- Shared Component Guidance: Documents the project's pre-defined shared refs (RecordNotFound, ForbiddenResponse, sortOrder, limit, offset) to avoid duplication and ensure consistency across all API endpoints.
- Practical Recipes & Checklists: Includes step-by-step examples for annotating common endpoint types (list, single resource, create, bulk delete) and Model schemas, plus checklists for new annotation work and debugging CI failures.
- Use Case: When adding a new PIM employee API endpoint, use this Skill to ensure your annotations match the routes.yaml configuration, use the correct shared response refs, and pass the mandatory generate-open-api-doc --throw CI check.
Quick Start
Use the rest-openapi skill to add correct OpenAPI annotations to your new OrangeHRM REST endpoint and pass the CI lint check.