lib/sirene.ex

defmodule Sirene do
  use SireneBase
  alias Jason

  @moduledoc """
  Documentation for `Sirene` module.
  """

  @doc """
  Allows you to know the status of the API service.
  """
  def get_informations do
    case SireneBase.get!("/informations") do
      %HTTPoison.Response{body: body} ->
        body
        |> Jason.decode!()

      {:error, reason} ->
        IO.inspect(reason)
    end
  end
end