<PackageReference Include="Refit" Version="15.0.0-beta.1" />

Refit.QueryNameAttribute

public sealed class QueryNameAttribute : Attribute
Renders the parameter value as a valueless query flag — a bare ?name segment with no =value — the equivalent of Retrofit's @QueryName. A collection produces one flag per element (?a&b&c); a null argument (or element) is omitted. The value is rendered through UrlParameterFormatter like any other query value, and is URL-encoded unless the parameter also carries EncodedAttribute.