Packages

A template for building API clients to 3rd party REST applications. This will generate templates for get, post functions. You then extend the project with convenience functions to access the API like it were just another Elixir lib.

Current section

Files

Jump to
gen_template_api_client template $PROJECT_NAME$ config config.exs
Raw

template/$PROJECT_NAME$/config/config.exs

use Mix.Config
# config(:<%= @project_name %>, key: :value)
#
# And access this configuration in your application as:
#
# Application.get_env(:<%= @project_name %>, :key)
#
# Or configure a 3rd-party app:
#
# config(:logger, level: :info)
#
# Example per-environment config:
#
# import_config("#{Mix.env}.exs")