package controllers

import play.api._
import play.api.mvc._
import com.mongodb.casbah.Imports._

class Whereuat extends Controller {

  def createAccount = Action {
    Ok("Create account placeholder")
  }

  def request = Action {
    Ok("Request placeholder")
  }

  def respond = Action {
    Ok("Response placeholder")
  }

}

package controllers

import play.api._
import play.api.mvc._
import com.mongodb.casbah.Imports._
import com.mongodb.util.JSON._

class Whereuat extends Controller {

  def createAccount = Action {
    val mongoClient = MongoClient("localhost", 27017)
    val db = mongoClient("test")
    val coll = db("test")

    val docs = coll.find()
    val list = docs.toList

    Ok(serialize(list))
  }

  def request = Action {
    val mongoClient = MongoClient("localhost", 27017)
    val db = mongoClient("test")
    val coll = db("test")

    val docs = coll.find()
    val list = docs.toList

    Ok(serialize(list))
  }

  def respond = Action {
    val mongoClient = MongoClient("localhost", 27017)
    val db = mongoClient("test")
    val coll = db("test")

    val docs = coll.find()
    val list = docs.toList

    Ok(serialize(list))
  }

}

Use Casbah read reference as placeholder
Use Casbah read reference as placeholder

Replace placeholder strings with Casbah reads, in JSON format
