Skip to main content

Overview

While Geni infers most schemas automatically, PHP 8 attributes allow you to override, enrich, or explicitly document specific endpoint behaviors. All attributes live under the namespace Geni\Laravel\Attributes\*.

Available Attributes

Endpoint Metadata

Parameter Documentation

Response Overrides

Naming a resource, model or Data class in type produces the same wrapped, fully inferred schema as returning it (for example {data: ArticleResource}). See Eloquent & API Resources.

Body Parameter Overrides

Attribute Reference Table