favro v0.2.1 Favro.Request
Link to this section Summary
Functions
Create an entity
Decode a datetime field into a NaiveDateTime struct
Decode a JSON payload using the JSON decoder module set in the Application config, defaults to the Jason decoder.
Encode a JSON payload using the JSON encoder module set in the Application config, defaults to the Jason encoder.
Filters nil values from the given map
List entities of the given type
Mock the response for a specific path
Make a request against the Favro API
Link to this section Functions
create(handle, path, entity)
Create an entity
decode_datetime(bin)
Decode a datetime field into a NaiveDateTime struct
decode_json(payload)
Decode a JSON payload using the JSON decoder module set in the Application config, defaults to the Jason decoder.
decode_json!(payload)
encode_json(payload)
Encode a JSON payload using the JSON encoder module set in the Application config, defaults to the Jason encoder.
encode_json!(payload)
filter_nil(map)
Filters nil values from the given map
list(handle, path, struct)
List entities of the given type
mock(handle, path, response)
Mock the response for a specific path
request(favro, method, path, headers, body \\ %{})
Make a request against the Favro API