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