BaseTarget
public class BaseTarget : SimpleTarget, AccessTokenAuthorizable
Returns the server status.
-
sampleData
for Moya’sTargetType
.Declaration
Swift
override public var sampleData: Data { get }
-
Declaration
Swift
public var authorizationType: AuthorizationType?
-
Return an
AuthTarget
for authentification process.Declaration
Swift
open func authentificate(login: String, password: String? = nil, send: AuthTarget.Send = .link, parameters: [String : Any]? = nil) -> AuthTarget
-
Return an
AuthVerificationTarget
for authentification process.Declaration
Swift
open func authentificate(token: String) -> AuthVerificationTarget
-
Undocumented
Declaration
Swift
open func logout(token: String? = nil) -> LogOutTarget
-
Target to get server info
Declaration
Swift
public var info: InfoTarget { get }
-
Target to get server info
Declaration
Swift
public func userInfo(userInfo: [String : Any]? = nil, deviceToken: String? = nil) -> UserInfoTarget
-
Undocumented
Declaration
Swift
public func record(from table: String, key: CustomStringConvertible, attributes: [String : Any] = [:]) -> RecordTarget
-
Returns the data for the records of specified table
Declaration
Swift
public func records(from table: String, attributes: [String : Any] = [:]) -> RecordsTarget
-
Returns the data for the special table for deleted records
Declaration
Swift
public func deletedRecords() -> RecordsTarget
-
Returns the data for the records of specified table
Declaration
Swift
public func records(from table: Table, attributes: [String : Any] = [:]) -> RecordsTarget
-
Create a status target from base target.
Declaration
Swift
public var status: StatusTarget { get }
-
Undocumented
Declaration
Swift
public func upload(data: Data, image: Bool = false, mimeType: String?) -> UploadTarget
-
Undocumented
Declaration
Swift
public func upload(url: URL) -> UploadTarget