package controllers import models.{Food,Unit,Mass,Measure} import play.api.mvc._ import play.api.libs.json._ class FoodController extends Controller { private def expFood() = new Food("Example", false, false, false, Map.empty, "Tom Flucke", Seq("Poultry", "Southern"), Mass, 2, 30, 1237, Nil ) def put(): Action[Food] = null def update(id: Int): Action[Food] = null def get(id: Int): Action[Food] = null def query(query: String = ""): Action[AnyContent] = Action { Ok(Json.toJson(expFood)) } def delete(id: Int): Action[Food] = null }