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

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

fixing new-principal record generation

File size: 3.9 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     
26        <br> 
27        <a href="api/authentication/login"> login  </a> <br> 
28         <br> 
29        <a href="api/authentication/logout"> logout</a> <br> 
30
31        <b>Test URI-s</b><br>
32        <b>All output xml-s are valid w.r.t. the schema</b><br>
33        GET <a href="api/authentication/principal">api/authentication/principal</a> <br> 
34        GET <a href="api/principals/admin">api/principals/admin</a><br> 
35        GET <a href="api/principals/00000000-0000-0000-0000-0000000000112">api/principals/00000000-0000-0000-0000-0000000000112</a> <br> 
36        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> 
37        GET <a href="api/principals/info?email=Twan.Goosen@mpi.nl">api/principals/info?email=Twan.Goosen@mpi.nl</a>  <br>
38        GET <a href="api/annotations?link=Sagrada">api/annotations?link=Sagrada</a>  <br>
39        GET <a href="api/annotations?link=Gaud">api/annotations?link=Gaud</a>  <br>
40        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> 
41        !Comment: What is "namespace" query parameter? Must be implemented and tested <br>
42        GET <a href="api/annotations/00000000-0000-0000-0000-000000000021">api/annotations/00000000-0000-0000-0000-000000000021</a>  </br>
43        GET <a href="api/annotations/00000000-0000-0000-0000-000000000021/targets">api/annotations/00000000-0000-0000-0000-000000000021/targets</a>  </br>
44        GET <a href="api/annotations/00000000-0000-0000-0000-000000000021/permissions">api/annotations/00000000-0000-0000-0000-000000000021/permissions</a><br>
45        GET <a href="api/targets/00000000-0000-0000-0000-000000000032">api/targets/00000000-0000-0000-0000-000000000032</a>  <br>
46        GET <a href="api/targets/00000000-0000-0000-0000-000000000032/versions">api/targets/00000000-0000-0000-0000-000000000032/versions</a>   <br>
47        GET <a href="api/cached/00000000-0000-0000-0000-000000000051/metadata">api/cached/00000000-0000-0000-0000-000000000051/metadata</a><br>
48        GET <a href="api/cached/00000000-0000-0000-0000-000000000051/content">api/cached/00000000-0000-0000-0000-000000000051/content</a><br> 
49        GET <a href="api/cached/00000000-0000-0000-0000-000000000511/stream">api/cached/00000000-0000-0000-0000-000000000511/stream</a> 
50       
51        <br> 
52        <br>
53        <b>Debugging URI's (only for developers)</b><br>
54        GET <a href="api/debug/remoteID">api/debug/remoteID</a> <br>
55        GET <a href="api/debug/annotations">api/debug/annotations</a> <br>
56        updated: GET <a href="api/debug/logDatabase/32">api/debug/logDatabase/32</a> <br>
57        updated: GET <a href="api/debug/logServer/32">api/debug/logServer/32</a> <br>
58    </body>
59</html>
Note: See TracBrowser for help on using the repository browser.