From 500daf3bd4bbefa64b80d9920e4288f89abc8cfe Mon Sep 17 00:00:00 2001 From: hallgren Date: Tue, 10 Apr 2012 13:33:12 +0000 Subject: minibar/pgf_online.js: pass arguments to the browse function in the same way as the other functions Also document it in gf-web-api-examples.html. --- src/www/minibar/gf-web-api-examples.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/www/minibar/gf-web-api-examples.html') diff --git a/src/www/minibar/gf-web-api-examples.html b/src/www/minibar/gf-web-api-examples.html index 520a66070..df6db0756 100644 --- a/src/www/minibar/gf-web-api-examples.html +++ b/src/www/minibar/gf-web-api-examples.html @@ -143,10 +143,20 @@ full API. "brackets":{"cat":"_","fid":0,"index":0,"children":[{"cat":"Item","fid":7,"index":0,"children":[{"token":"that"},{"cat":"Kind","fid":6,"index":0,"children":[{"token":"pizza"}]}]},{"token":"is"},{"token":"very"}]}, "completions":["boring","delicious","expensive","fresh","Italian","very","warm"], "text":""}] +
// Get info about a category in the abstract syntax +
server.browse({id:"Kind"},callback) +
http://localhost:41296/grammars/Foods.pgf?command=browse&id=Kind&format=json +
{"def":"cat Kind", + "producers":["Cheese","Fish","Mod","Pizza","Wine"], + "consumers":["Mod","That","These","This","Those"]} +
// Get info about a function in the abstract syntax +
server.browse({id:"This"},callback) +
http://localhost:41296/grammars/Foods.pgf?command=browse&id=This&format=json +
{"def":"fun This : Kind -> Item","producers":[],"consumers":[]}
- Last modified: Tue Oct 18 16:36:36 CEST 2011 + Last modified: Tue Apr 10 15:08:14 CEST 2012
TH
\ No newline at end of file -- cgit v1.2.3