GF Cloud Service API (preliminary)
The service is available from
http://cloud.grammaticalframework.org.
Users that have GF installed on their own computer can also
run the service locally by starting GF with the command gf -server.
This is preliminary and subject to change!
http://cloud.grammaticalframework.org/grammars/Foods.pgf?command=random
might return a result like
[{"tree":"Pred (That Pizza) (Very Boring)"}]
For more info, see:
/new command to obtain a
working directory (which also servces as a session identifier) on the server,
see below.
/gfshell&dir=...&command=i+Foods.pgf
/gfshell&dir=...&command=gr
Pred (That Pizza) (Very Boring)
/new
/tmp/gfse.123456.
Most of the clouds service commands require that a working directory
is specified in the dir parameter.
The working directory is persistent, so clients are expected
to remember and reuse it. Access to previously
uploaded files requires that the same working directory is used.
/parse?path=source
/cloud?&dir=...&command=upload&path1=source1&path2=source2&...
/cloud?&dir=...&command=make&path1=source1&path2=source2&...
/cloud?&dir=...&command=download&file=path
/cloud?&dir=...&command=ls&ext=.pgf
["Foods.pgf","Letter.pgf"] (list files with the specified extension)
/cloud?&dir=...&command=rm&file=path
/cloud?&dir=...&command=link_directories&newdir=...