Protocols
The following protocols are available globally.
-
Defines an API Client.
The definition includes a
See moresession, adecoderand abaseURLComponents. that should be used when sendingURLRequeststo the REST API server specified.Declaration
Swift
public protocol APIotaClient -
Defines an API endpoint for a Client.
The definition must include a
See morepathand ahttpMethod. It can also optionaly include definitions forheaders,httpBodyandqueryItems.Declaration
Swift
public protocol APIotaCodableEndpoint -
Defines an API endpoint for a Client whose body is an URL encoded form.
The definition must include a
See morerequestBodyQueryItemsarray.Declaration
Swift
public protocol APIotaURLEncodedFormEndpoint : APIotaCodableEndpoint where Self.Body == Data
View on GitHub
Install in Dash
Protocols Reference