REST client for CYpher Learning API. Created with OpenAPI Code Generator.
def deps do
[
{:cyphi, "~> 0.1.0"}
]
endYou will need to add to your config/config.exs file the API endpoint
and the API KEY:
config :cyphy,
api_url: "Cypher Learning API endpoint",
api_key: "API KEY VALUE"You can set your test environment with a HTTP test adapter:
config :cyphi,
http_adapter: MyApp.TestAdapterThe adaprter should have a public request/1 function with args
being a map() with :method and url keys.
The url, being the REST paths published by Cypher Learning in their API documentation.