source: DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/webapp/index.jsp @ 5139

Last change on this file since 5139 was 5139, checked in by olhsha@mpi.nl, 10 years ago

URL-encoding bug fixing. Tested.

File size: 4.5 KB
Line 
1<%--
2
3    Copyright (C) 2013 DASISH
4
5    This program is free software; you can redistribute it and/or
6    modify it under the terms of the GNU General Public License
7    as published by the Free Software Foundation; either version 2
8    of the License, or (at your option) any later version.
9
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software
17    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19--%>
20<html>
21    <body>
22        <h2>DASISH REST API</h2>
23        <p><a href="api/myresource">Jersey resource</a>
24        <p><a href="https://trac.clarin.eu/wiki/DASISH/SpecificationDocument#RESTAPI">https://trac.clarin.eu/wiki/DASISH/SpecificationDocument#RESTAPI</a></p>
25        <br>
26        <h3>You are not necessarily logged in.</h3>
27        <br> 
28        <a href="registerNonShibbolethPrincipal.html"> Register a non-shibboleth user</a> <br> 
29        <br> 
30        <a href="registerShibbolethPrincipal.html"> Register a shibboleth user</a> <br> 
31        <br>
32        <a href="registerShibbolethAlsoAsNonShibboleth.html"> Register an existing  shibboleth user as a non-shibboleth as well.</a> <br> 
33        <br>
34        <br>
35        <a href="api/authentication/login"> login  </a> <br> 
36         <br> 
37         
38        <br>
39        <h3>You are logged in. </h3>
40        <br> 
41        <a href="api/authentication/logout"> logout</a> <br> 
42        <br> 
43       
44        <b>Test URI-s</b><br>
45        <br> 
46        <a href="updatePrincipal.html"> Update logged-in user.</a> <br> 
47        <br>
48        GET <a href="api/authentication/principal">api/authentication/principal</a> <br> 
49        GET <a href="api/principals/admin">api/principals/admin</a><br> 
50        GET <a href="api/principals/00000000-0000-0000-0000-0000000000112">api/principals/00000000-0000-0000-0000-0000000000112</a> <br> 
51        GET <a href="api/principals/00000000-0000-0000-0000-0000000000112/current">api/principals/00000000-0000-0000-0000-0000000000112/current</a>  !Problem: how to ask the servlet if the given user is logged in, may be by some other running somewhere client<br> 
52        GET <a href="api/principals/info?email=Twan.Goosen@mpi.nl">api/principals/info?email=Twan.Goosen@mpi.nl</a>  <br>
53        GET <a href="api/annotations?link=Sagrada_Fam%C3%ADlia">api/annotations?link=Sagrada_Fam%C3%ADlia</a>  <br>
54        GET <a href="api/annotations?link=Antoni_Gaud%C3%AD">api/annotations?link=Antoni_Gaud%C3%AD</a>  <br>
55        GET <a href="api/annotations?after=2014-02-04 15:57:58.046908&before=2014-04-06 10:08:16.213186">api/annotations?after=2014-02-04 15:57:58.046908&before=2014-04-06 10:08:16.213186</a> 
56        !Comment: What is "namespace" query parameter? Must be implemented and tested <br>
57        GET <a href="api/annotations/00000000-0000-0000-0000-000000000022">api/annotations/00000000-0000-0000-0000-000000000022</a>  </br>
58        GET <a href="api/annotations/00000000-0000-0000-0000-000000000022/targets">api/annotations/00000000-0000-0000-0000-000000000022/targets</a>  </br>
59        GET <a href="api/annotations/00000000-0000-0000-0000-000000000022/permissions">api/annotations/00000000-0000-0000-0000-000000000022/permissions</a><br>
60        GET <a href="api/targets/00000000-0000-0000-0000-000000000032">api/targets/00000000-0000-0000-0000-000000000032</a>  <br>
61        GET <a href="api/targets/00000000-0000-0000-0000-000000000032/versions">api/targets/00000000-0000-0000-0000-000000000032/versions</a>   <br>
62        GET <a href="api/cached/00000000-0000-0000-0000-000000000051/metadata">api/cached/00000000-0000-0000-0000-000000000051/metadata</a><br>
63        GET <a href="api/cached/00000000-0000-0000-0000-000000000051/content">api/cached/00000000-0000-0000-0000-000000000051/content</a><br> 
64        GET <a href="api/cached/00000000-0000-0000-0000-000000000511/stream">api/cached/00000000-0000-0000-0000-000000000511/stream</a> 
65       
66        <br> 
67        <br>
68        <b>Debugging URI's (only for developers)</b><br>
69        GET <a href="api/debug/remoteID">api/debug/remoteID</a> <br>
70        GET <a href="api/debug/annotations">api/debug/annotations</a> <br>
71        updated: GET <a href="api/debug/logDatabase/32">api/debug/logDatabase/32</a> <br>
72        updated: GET <a href="api/debug/logServer/32">api/debug/logServer/32</a> <br>
73    </body>
74</html>
Note: See TracBrowser for help on using the repository browser.