From: wilhelm.matilainen at gmail.com (Wilhelm Matilainen)
Subject: Fwd: JSON interface
Date: Sun, 5 Oct 2014 14:13:35 +0300 [thread overview]
Message-ID: <CANvZ+9SoVNVHzBPzLk7_KLew2-+F1vYbo2CFZ03sg7f_bjk-yQ@mail.gmail.com> (raw)
In-Reply-To: <CANvZ+9TetQ5_bQJ+Bq2tArpd0ACKQ4Zh+ciqNojfUs2vLqraEQ@mail.gmail.com>
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>
next parent reply other threads:[~2014-10-05 11:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CANvZ+9TetQ5_bQJ+Bq2tArpd0ACKQ4Zh+ciqNojfUs2vLqraEQ@mail.gmail.com>
2014-10-05 11:13 ` wilhelm.matilainen [this message]
2014-10-05 12:05 ` john
2014-10-05 12:25 ` wilhelm.matilainen
2015-02-24 18:18 xuu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANvZ+9SoVNVHzBPzLk7_KLew2-+F1vYbo2CFZ03sg7f_bjk-yQ@mail.gmail.com \
--to=cgit@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).