RESTRequest

public class RESTRequest

REST Request

  • The name of REST API being invoked, as specified in amplifyconfiguration.json. Specify this parameter when more than one REST API is configured.

    Declaration

    Swift

    public let apiName: String?
  • Path of the resource

    Declaration

    Swift

    public let path: String?
  • Headers

    Declaration

    Swift

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

    Declaration

    Swift

    public let queryParameters: [String : String]?
  • Body content

    Declaration

    Swift

    public let body: Data?
  • Initializer with all properties

    Declaration

    Swift

    public init(apiName: String? = nil,
                path: String? = nil,
                headers: [String: String]? = nil,
                queryParameters: [String: String]? = nil,
                body: Data? = nil)