Kazan v0.3.0 Kazan.Request

Kazan.Request is a struct that describes an HTTP request.

Summary

Functions

Creates a kazan request for a given operation

Types

t()
t() :: %Kazan.Request{body: String.t, content_type: String.t, method: String.t, path: String.t, query_params: Map.t, response_schema: atom | nil}

Functions

create(operation, params)
create(atom, Map.t) :: {:ok, Map.t} | {:error, atom}

Creates a kazan request for a given operation.

Parameters

  • operation should be the nickname of an operation found in the swagger dict
  • params should be a Map of parameters to send in the request.