Skip to content

annotation Athena::Framework::Annotations::MapQueryString #

Enables the ATHR::RequestBody resolver for the parameter this annotation is applied to based on the request's query string. See the related resolver documentation for more information.

class ArticleController < ATH::Controller
  @[ARTA::Get("/articles")]
  def articles(
    @[ATHA::MapQueryString]
    pagination_context : PaginationContext,
  ) : Array(Article)
    # ...
  end
end

Configuration#

Optional Arguments#

validation_groups#

Type: Array(String) | AVD::Constraints::GroupSequence | Nil Default: nil

The validation groups that should be used when validating the resolved object.