Currently, JSON encoding of the httpBody of the result of the default implementation of the request(baseUrlComponents: URLComponents) throws -> URLRequest method for the APIotaCodableEndpoint protocol is attempted using a fixed instance of JSONEncoder in a default configuration.
JSON encoding of httpBody should be attempted using an instance of JSONEncoder that is provided by the type conforming to APIotaCodableEndpoint via a required property encoder. This is similar to approach used for JSON decoding on the APIotaClient protocol.
Currently, JSON encoding of the
httpBodyof the result of the default implementation of therequest(baseUrlComponents: URLComponents) throws -> URLRequestmethod for theAPIotaCodableEndpointprotocol is attempted using a fixed instance ofJSONEncoderin a default configuration.JSON encoding of
httpBodyshould be attempted using an instance ofJSONEncoderthat is provided by the type conforming toAPIotaCodableEndpointvia a required propertyencoder. This is similar to approach used for JSON decoding on theAPIotaClientprotocol.