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

Link to this function

create(handle, path, entity)

Create an entity

Link to this function

decode_datetime(bin)

Decode a datetime field into a NaiveDateTime struct

Link to this function

decode_json(payload)

Decode a JSON payload using the JSON decoder module set in the Application config, defaults to the Jason decoder.

Link to this function

decode_json!(payload)

Link to this function

encode_json(payload)

Encode a JSON payload using the JSON encoder module set in the Application config, defaults to the Jason encoder.

Link to this function

encode_json!(payload)

Link to this function

filter_nil(map)

Filters nil values from the given map

Link to this function

list(handle, path, struct)

List entities of the given type

Link to this function

mock(handle, path, response)

Mock the response for a specific path

Link to this function

request(favro, method, path, headers, body \\ %{})

Make a request against the Favro API