annotation Athena::Routing::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::Routing::Renderers
- What renderer to use for the return value/object. Default isRenderers::JSONRenderer
.
Example
@[Athena::Routing::View(groups: ["admin", "default"])]