Tag

annotation class Tag(val value: String = KTORGEN_DEFAULT_NAME)

Adds the argument instance as a request tag using the type as AttributeKey.

@GET("/")
fun foo(@Tag tag: String)

Tag arguments may be null which will omit them from the request.

See also

Properties

Link copied to clipboard

Name of the key. Default the name of the function parameter