defmodule Web.API.RoomView do
  use Web, :view

  alias Web.Endpoint
  alias Web.API.Link

  def render("index.json", %{pagination: pagination, rooms: rooms, zone: zone}) do
    %{
      items: render_many(rooms, __MODULE__, "show.json"),
      links: [
        %Link{
          rel: :self,
          href: Routes.api_zone_room_path(Endpoint, :index, zone.id, page: pagination.current)
        }
      ]
    }
  end

  def render("show.json", %{room: room}) do
    %{
      name: room.name,
      live?: not is_nil(room.live_at),
      links: [
        %Link{
          rel: :self,
          href: Routes.api_room_path(Endpoint, :show, room.id)
        }
      ]
    }
  end
end

defmodule Web.API.RoomView do
  use Web, :view

  alias Web.Endpoint
  alias Web.API.Link

  def render("index.json", %{pagination: pagination, rooms: rooms, zone: zone}) do
    %{
      items: render_many(rooms, __MODULE__, "show.json"),
      links: [
        %Link{
          rel: :self,
          href: Routes.api_zone_room_path(Endpoint, :index, zone.id, page: pagination.current)
        }
      ]
    }
  end

  def render("show.json", %{room: room}) do
    %{
      name: room.name,
      description: room.description,
      live?: not is_nil(room.live_at),
      links: [
        %Link{
          rel: :self,
          href: Routes.api_room_path(Endpoint, :show, room.id)
        }
      ]
    }
  end
end

Add description to the room response
Add description to the room response

oestrich/ex_venture,oestrich/ex_venture,oestrich/ex_venture