Packages

Swagger auto generated Elixir client for Byauth resource API

Current section

Files

Jump to
byauth_client lib byauth client connection.ex
Raw

lib/byauth/client/connection.ex

# (C) 2018 Bycrates AS
# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Byauth.Client.Connection do
@moduledoc """
Handle Tesla connections for Byauth.Client.
"""
use Tesla
# Add any middleware here (authentication)
plug Tesla.Middleware.BaseUrl, "https://localhost/account/resource"
plug Tesla.Middleware.Headers, %{"User-Agent" => "Elixir"}
plug Tesla.Middleware.EncodeJson
@doc """
Configure an authless client connection
# Returns
Tesla.Env.client
"""
@spec new() :: Tesla.Env.client
def new do
Tesla.build_client([])
end
end