Protocols
The following protocols are available globally.
-
Defines an API Client.
The definition includes a
See moresession
, adecoder
and abaseURLComponents
. that should be used when sendingURLRequests
to the REST API server specified.Declaration
Swift
public protocol APIotaClient
-
Defines an API endpoint for a Client.
The definition must include a
See morepath
and ahttpMethod
. It can also optionaly include definitions forheaders
,httpBody
andqueryItems
.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 morerequestBodyQueryItems
array.Declaration
Swift
public protocol APIotaURLEncodedFormEndpoint : APIotaCodableEndpoint where Self.Body == Data