GetProducts

data class GetProducts(val perPage: Int? = null, val page: Int? = null) : ProductEndpoints

Endpoint for retrieving a paginated list of products (GET /v1/products).

Constructors

Link copied to clipboard
constructor(perPage: Int? = null, page: Int? = null)

Properties

Link copied to clipboard
open override val endpointURL: String

The fully qualified URL string for this endpoint.

Link copied to clipboard
open override val httpMethod: String

HTTP method, e.g. "GET", "POST", "DELETE".

Link copied to clipboard
val page: Int? = null

The page number to retrieve.

Link copied to clipboard
val perPage: Int? = null

The number of products to return per page.

Link copied to clipboard
open override val queryItems: List<QueryItem>?

Optional query-string parameters appended to endpointURL.