         conn
         |> put_status(:not_found)
         |> render("error.json", message: "Couldn't find matching experiment")
-      _ -> render(conn, "show.json", experiment: experiment)
+      _ ->
+        attached_participants = fetch_participants(experiment)
+
+        conn
+        |> render("show.json", experiment: Map.put(experiment, :attached_participants, attached_participants))
     end
   end
 

      Repo.insert!(experiments_has_participants_changeset)
    end
  end
end

defmodule EmotionsWheelBackend.ExperimentController do
  use EmotionsWheelBackend.Web, :controller

  import Ecto.Query, only: [from: 2]

  alias EmotionsWheelBackend.{Repo, Experiment, Participant, ExperimentsHasParticipants}

  def index(conn, _params) do
    experiments = Experiment |> Repo.all
