annotation Athena::View
Overview
Defines how the return value of an endpoint is displayed.
Fields
- groups :
Array(String)
- The serialization groups to apply to this endpoint. See the CrSerializer Docs for more info. - renderer :
Athena::Renderers
- What renderer to use for the return value/object. Default isAthena::Renderers::JSONRenderer
Example
@[Athena::View(groups: ["admin", "default"])]