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

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

multithread stress test java AnnotationResource? getAnnootation(x)

File size: 5.1 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>Services for which you do not need to be logged-in</h3>
27       
28        <br>
29        <a href=<%=application.getInitParameter("eu.dasish.annotation.backend.schemaLocation")%> > Get DASISH schema</a> <br> 
30        <br>
31        <br>
32        <a href="registerNonShibbolethPrincipal.html"> Register a user for basic authentication logging-in</a><br> 
33        <a href="registerShibbolethPrincipal.html"> Register a shibboleth user</a> <br> 
34        <br>
35        <br>
36        <a href="api/authentication/login"> login  </a> <br> 
37         <br> 
38         
39        <br>
40        <h3>Services for which you need to be logged in</h3>
41        <br> 
42        <a href="api/authentication/logout"> logout</a> <br> 
43        <br>
44        <br> 
45        <a href="changePermissions.html"> Change access mode for a user and an annotation </a><br> 
46        <a href="publicAccess.html"> Change public access mode for an annotation </a> <br> 
47        <br>
48       
49        <b>Test URI-s</b><br>
50        <br> 
51        <a href="updatePrincipal.html"> Update logged-in user.</a> <br> 
52        <br>
53        GET <a href="api/authentication/principal">api/authentication/principal</a> <br> 
54        GET <a href="api/principals/admin">api/principals/admin</a><br> 
55        GET <a href="api/principals/00000000-0000-0000-0000-0000000000112">api/principals/00000000-0000-0000-0000-0000000000112</a> <br> 
56        GET <a href="api/principals/00000000-0000-0000-0000-0000000000112/current">api/principals/00000000-0000-0000-0000-0000000000112/current</a><br> 
57<!--        !Problem: how to ask the servlet if the given user is logged in, may be by some other running somewhere client<br> -->
58        GET <a href="api/principals/info?email=Twan.Goosen@mpi.nl">api/principals/info?email=Twan.Goosen@mpi.nl</a>  <br>
59        GET <a href="api/annotations?link=Sagrada_Fam%C3%ADlia">api/annotations?link=Sagrada_Fam%C3%ADlia</a>  <br>
60        GET <a href="api/annotations?link=Antoni_Gaud%C3%AD">api/annotations?link=Antoni_Gaud%C3%AD</a>  <br>
61        GET <a href="api/annotations?after=2013-02-04 15:57:58.046908&before=2014-06-25 10:08:16.213186">api/annotations?after=2014-02-04 15:57:58.046908&before=2014-04-06 10:08:16.213186</a><br> 
62<!--        !Comment: What is "namespace" query parameter? Must be implemented and tested <br>-->
63        GET <a href="api/annotations/00000000-0000-0000-0000-000000000022">api/annotations/00000000-0000-0000-0000-000000000022</a>  </br>
64        GET <a href="api/annotations/00000000-0000-0000-0000-000000000022/targets">api/annotations/00000000-0000-0000-0000-000000000022/targets</a>  </br>
65        GET <a href="api/annotations/00000000-0000-0000-0000-000000000022/permissions">api/annotations/00000000-0000-0000-0000-000000000022/permissions</a><br>
66        GET <a href="api/targets/00000000-0000-0000-0000-000000000032">api/targets/00000000-0000-0000-0000-000000000032</a>  <br>
67        GET <a href="api/targets/00000000-0000-0000-0000-000000000032/versions">api/targets/00000000-0000-0000-0000-000000000032/versions</a>   <br>
68        GET <a href="api/cached/b0d3f18c-eecf-40ea-9979-eecbbdca7d68/metadata">api/cached/b0d3f18c-eecf-40ea-9979-eecbbdca7d68/metadata</a><br>
69        GET <a href="api/cached/b0d3f18c-eecf-40ea-9979-eecbbdca7d68/stream">api/cached/b0d3f18c-eecf-40ea-9979-eecbbdca7d68/stream</a><br> 
70        GET <a href="api/cached/00000000-0000-0000-0000-000000000051/content">api/cached/00000000-0000-0000-0000-000000000051/content</a><br> 
71        GET <a href="api/cached/de82f9d5-6b84-4c9d-8b8a-0736c8b1dd79/stream">api/cached/de82f9d5-6b84-4c9d-8b8a-0736c8b1dd79/stream</a><br> 
72       
73       
74       
75        <br> 
76        <br>
77        <b>Debugging URI's (only for developers)</b><br>
78        GET <a href="api/annotations/stressTest?n=33">api/annotations/stressTest?n=33</a> <br>
79        GET <a href="api/debug/remoteID">api/debug/remoteID</a> <br>
80        GET <a href="api/debug/uuid">api/debug/uuid</a> (random uuid) <br>
81        GET <a href="api/debug/annotations">api/debug/annotations</a> <br>
82        GET <a href="api/debug/logDatabase/32">api/debug/logDatabase/32</a> <br>
83        GET <a href="api/debug/logServer/32">api/debug/logServer/32</a> <br>
84    </body>
85</html>
Note: See TracBrowser for help on using the repository browser.