RESTOperationRequest

public struct RESTOperationRequest : AmplifyOperationRequest

REST Operation Request

  • The name of the API to perform the request against

    Declaration

    Swift

    public let apiName: String?
  • The type of HTTP operation

    Declaration

    Swift

    public let operationType: RESTOperationType
  • path of the resource

    Declaration

    Swift

    public let path: String?
  • Request headers

    Declaration

    Swift

    public let headers: [String : String]?
  • Query parameters

    Declaration

    Swift

    public let queryParameters: [String : String]?
  • Content body

    Declaration

    Swift

    public let body: Data?
  • Options to adjust the behavior of this request, including plugin-options

    Declaration

    Swift

    public let options: Options
  • Initializer with all properties

    Declaration

    Swift

    public init(apiName: String?,
                operationType: RESTOperationType,
                path: String? = nil,
                headers: [String: String]? = nil,
                queryParameters: [String: String]? = nil,
                body: Data? = nil,
                options: Options)
  • Declaration

    Swift

    struct Options