Search
Describes the specification of an API.
Optional API body.
API headers.
API method.
API path.
API query.
@type body() :: iodata() | nil
@type config() :: map()
@type headers() :: %{ optional(header_name :: String.t()) => header_value :: String.t() }
@type method() :: String.t()
@type path() :: String.t()
@type query() :: %{ optional(query_name :: String.t()) => query_value :: boolean() | number() | String.t() }
@type t() :: %CozyOSS.ApiSpec{ body: body(), bucket: term(), headers: headers(), method: method(), object: term(), path: path(), query: query(), sub_resources: term() }
@spec build!(config()) :: t()