Fwd: JSON interface
Wilhelm Matilainen
wilhelm.matilainen at gmail.com
Sun Oct 5 13:13:35 CEST 2014
Instead of acting as a server providing html and css files, could there be
a only-json option?
I could then provide all the static files minified and cached from a proper
http server already in use and request only the data from cgit.
Using jquery:
-----------------------------------------------
$.getJSON('/git/repository/<repo>', function(data) {
showRepo(data);
});
-----------------------------------------------
By loading https://
<server>/git/<what-I-need>/<parameter-1>/<parameter-2>/<etc.>
CGit would output something like:
-----------------------------------------------
{
"repository": "test",
"property1": "value1",
"property2": "value2"
}
-----------------------------------------------
It's not fun at all to operate multiple http servers all with their own
options.
Wilhelm Matilainen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20141005/fd61caa1/attachment.html>
More information about the CGit
mailing list