diff options
author | Aslak Knutsen <aslak@redhat.com> | 2013-03-01 18:46:45 +0100 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-03-04 17:11:15 +0100 |
commit | 794676f241a284a2df95b57224aa7f9165f058e0 (patch) | |
tree | f2971c99fe16938b4888283b98d40a6c3ee63515 /hyperkitty/templates/api.html | |
parent | 6150ebc0362118789c8f3d7b57d93f68dc1cd62d (diff) | |
download | hyperkitty-794676f241a284a2df95b57224aa7f9165f058e0.tar.gz hyperkitty-794676f241a284a2df95b57224aa7f9165f058e0.tar.xz hyperkitty-794676f241a284a2df95b57224aa7f9165f058e0.zip |
Update REST API to new KittyStore backend
* Move to use APIView as Resource base
* Add List Resource to show all lists
* Custom serialize Thread, Email and List objects
Diffstat (limited to 'hyperkitty/templates/api.html')
-rw-r--r-- | hyperkitty/templates/api.html | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/hyperkitty/templates/api.html b/hyperkitty/templates/api.html index 4c4af27..422d6a2 100644 --- a/hyperkitty/templates/api.html +++ b/hyperkitty/templates/api.html @@ -27,13 +27,24 @@ </div> <div class="even" style="padding-left: 1em"> + <h3>Lists <a>/api/list/</a></h3> + <p> +Using the address /api/list/ you will be able to +retrieve the information known about all the mailing-lists. + </p> + <p> For example: <a href="{% url 'api_list' %}?format=api"> + {% url 'api_list' %} + </a> + </p> + </div> + <div class="even" style="padding-left: 1em"> <h3>Emails <a>/api/email/<list name>/<Message-ID></a></h3> <p> Using the address /api/email/<list name>/<Message-ID> you will be able to retrieve the information known about a specific email on the specified mailing-list. </p> - <p> For example: <a href="{% url 'api_email' mlist_fqdn='devel@fp.o' hashid='13129854572893334' %}"> - {% url 'api_email' mlist_fqdn='devel@fp.o' hashid='13129854572893334' %} + <p> For example: <a href="{% url 'api_email' mlist_fqdn='devel@fp.o' messageid='13129854572893334' %}?format=api"> + {% url 'api_email' mlist_fqdn='devel@fp.o' messageid='13129854572893334' %} </a> </p> </div> @@ -43,7 +54,7 @@ retrieve the information known about a specific email on the specified mailing-l Using the address /api/thread/<list name>/<Message-ID> you will be able to retrieve the all the email for a specific thread on the specified mailing-list. </p> - <p> For example: <a href="{% url 'api_thread' mlist_fqdn='devel@fp.o' threadid='13129854572893334' %}"> + <p> For example: <a href="{% url 'api_thread' mlist_fqdn='devel@fp.o' threadid='13129854572893334' %}?format=api"> {% url 'api_thread' mlist_fqdn='devel@fp.o' threadid='13129854572893334' %} </a> </p> @@ -61,7 +72,7 @@ search for all emails of the specified mailing-list containing the provided keyw <li>Content</li> <li>SubjectContent</li> </ul> - <p> For example: <a href="{% url 'api_search' mlist_fqdn='devel@fp.o' field='From' keyword='pingoured' %}"> + <p> For example: <a href="{% url 'api_search' mlist_fqdn='devel@fp.o' field='From' keyword='pingoured' %}?format=api"> {% url 'api_search' mlist_fqdn='devel@fp.o' field='From' keyword='pingoured' %} </a> </p> |