View Source BasicECommerce.DataSource.JsonAdapter (Basic e-commerce v0.1.0)

An adapter that fetch data from a JSON file.

It needs a json_file_path which will be read at runtime.

example

Example

# config/config.exs
config :my_app, MyApp.BasicECommerce,
  adapter: BasicECommerce.DataSource.JsonAdapter,
  json_file_path: '/data/pricing_data.json`

Link to this section Summary

Types

(This type is managed by TypeCheck, which allows checking values against the type at runtime.)

Link to this section Types

@type config() :: Keyword.t()

(This type is managed by TypeCheck, which allows checking values against the type at runtime.)

Full definition:

config :: Keyword.t()

Link to this section Functions