service example results in compile error
entity Document { title :: String (id, name) text :: Text } service document(id : String) { if(getHttpMethod() == "GET") { var doc := findDocument(id); var json := JSONObject(); json.put("title", doc.title); json.put("text", doc.text); return json; } if(getHttpMethod() == "PUT") { var doc := getUniqueDocument(id); var json := JSONObject(readRequestBody()); doc.text := json.getString("text"); return doc.title; } }
cannot find symbol
Submitted by Danny Groenewegen on 18 February 2011 at 10:07
symbol : class InputStreamReader
location: package utils
org.json.JSONObject json1 = new org.json.JSONObject(utils.InputStreamReader.readBody());
Issue Log
On 18 February 2011 at 10:48 Danny Groenewegen tagged 1.2.7.2
On 18 February 2011 at 12:00 Danny Groenewegen closed this issue.
Log in to post comments