Protocols

The following protocols are available globally.

  • Defines an API Client.

    The definition includes a session, a decoder and a baseURLComponents. that should be used when sending URLRequests to the REST API server specified.

    See more

    Declaration

    Swift

    public protocol APIotaClient
  • Defines an API endpoint for a Client.

    The definition must include a path and a httpMethod. It can also optionaly include definitions for headers, httpBody and queryItems.

    See more

    Declaration

    Swift

    public protocol APIotaCodableEndpoint
  • Defines an API endpoint for a Client whose body is an URL encoded form.

    The definition must include a requestBodyQueryItems array.

    See more

    Declaration

    Swift

    public protocol APIotaURLEncodedFormEndpoint : APIotaCodableEndpoint where Self.Body == Data