Annotation Type QueryParam


@Target({PARAMETER,FIELD}) @Retention(RUNTIME) public @interface QueryParam
Marks a method parameter to be a query parameter.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the query parameter.
  • Element Details

    • value

      String value
      The name of the query parameter.

      If left blank the method parameter name is used.

      We typically use this when the query parameter uses snake-case or similar that does not map to a valid java/kotlin parameter name.

      Default:
      ""