<PackageReference Include="Refit" Version="16.4.0" />

Refit.PagedAttribute

public sealed class PagedAttribute : Attribute
Declares how a method that returns PagedEnumerable<T, U> reads the items and the continuation from each page. The source generator emits the request and the paging loop, so the method is called like any other and returns the lazy sequence.
public bool AnyOrigin { get; set; }

Gets or sets a value indicating whether a next link may point at any http or https origin. The client's credentials are sent to whatever origin the server names, so prefer Origins or SameOrigin.

public string Items { get; set; }

Gets or sets the member of the page that holds the items. When omitted, the page type must have exactly one member that is a sequence of the item type, and the generator uses it.

public string Next { get; set; }

Gets or sets the member of the page that holds the continuation: the cursor, the next offset, or the next link. A null or empty value ends the sequence, so the member must be nullable.

public string NextHeader { get; set; }

Gets or sets the response header that holds the continuation, for APIs that return it outside the body. The page type must be an ApiResponse<T> or an IApiResponse. The Link header is read for its rel="next" relation; any other header is read as the whole value.

public string[] Origins { get; set; }

Gets or sets the origins a next link may point at, such as https://api.github.com.

public bool SameOrigin { get; set; }

Gets or sets a value indicating whether a next link may only point at the origin of the client's base address.

public string Total { get; set; }

Gets or sets the member of the page that holds the total number of items, for offset paging. The sequence ends when the offset reaches it, and the token parameter must be an Int32.

public PagedAttribute()