Request

public struct Request<ResponseType, ErrorResponseType> : Sendable

A lightweight description of an App Store Connect request before it is turned into a URLRequest.

  • The path of the endpoint.

    Declaration

    Swift

    public let path: String
  • The HTTP method to use for the request.

    Declaration

    Swift

    public let method: HTTPMethod
  • The parameters to add to the query.

    Declaration

    Swift

    public let parameters: Parameters?
  • The request body to send with the request.

    Declaration

    Swift

    public let requestBody: RequestBody?
  • Creates a request description for a generated endpoint helper.

    Declaration

    Swift

    public init(path: String, method: HTTPMethod, parameters: Parameters? = nil, requestBody: RequestBody? = nil)

    Parameters

    path

    The relative App Store Connect API path, such as /v1/apps.

    method

    The HTTP method used by the endpoint.

    parameters

    Optional query parameters encoded with Bagbutik’s parameter helpers.

    requestBody

    An optional request body that will be JSON encoded when executed.