APIRequestEndpoint
public protocol APIRequestEndpoint : APIEndpoint
Endpoint protocol extending APIEndpoint encapsulating and improving sending JSON models to API.
-
Associated type describing the encodable request model for JSON serialization. The associated type is derived from the body property.
Declaration
Swift
associatedtype Request : Encodable -
Generic encodable model, which will be sent as JSON body.
Declaration
Swift
var body: Request { get }
-
methodExtension methodDeclaration
Swift
var method: HTTPMethod { get } -
typeExtension methodDeclaration
Swift
var type: RequestType { get }
View on GitHub
APIRequestEndpoint Protocol Reference