annotation
Amber::Schema::Response
Overview
Define response schema, status code, and description for an endpoint Properties:
- status: HTTP status code (e.g., 200, 201, 404)
- schema: The schema class for the response body (optional)
- description: Human-readable description of the response
- content_type: The response content type (default: "application/json") Example: @[Response(status: 200, schema: UserSchema, description: "User retrieved successfully")]