source: MDRepository/trunk/docs/MDRepository.wadl

Last change on this file was 852, checked in by vronk, 14 years ago

starting docs-folder for MDRepository
with first version of WADL for MDRepository

File size: 4.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<application
3    xmlns="http://research.sun.com/wadl/2006/10"
4    xmlns:xs="http://www.w3.org/2001/XMLSchema"
5    xmlns:xpath="http://www.w3.org/TR/xpath20/"
6    xmlns:cat="http://www.isocat.org/"
7    xmlns:dcif="http://www.isocat.org/ns/dcif"
8    xmlns:mds="http://cmdi.clarin.eu/mdservice/"
9>
10<doc title="CLARIN Metadata Repository" >
11This is a draft description of the REST-interface of <code>CLARIN Metadata Repository</code>. Especially the response description is very sketchy yet.
12</doc>
13   
14    <resources base="http://cmdi.clarin.eu/mdrepository/">
15                               
16                               
17                                <resource id="collections" path="">
18                                        <doc title="Collections summary" >
19                                                This interface provides summary of the basic collections hierarchy in which the MdRecords are organised
20                                                </doc>
21
22            <method name="GET">
23                <request>   
24                                <param name="operation" type="xs:string" fixed="getCollections" style="query">                       
25                    </param>                 
26                    <param name="collection" type="xs:URI" style="query" default="root">                       
27                                <doc>handles identifying the examined collection</doc>                       
28                    </param>                   
29                    <param name="maxdepth" type="xs:integer" default="1" style="query">
30                        <doc>how deep in the collection hierarchy tree to go</doc>                       
31                    </param>
32                </request>
33                <response>
34                                <representation mediaType="text/xml" element="mds:Collections">
35                        <param name="collection_name" path="//Collection" repeating="true" type="xs:QName" style="plain">
36                            <link resource_type="#collection"/>
37                        </param>                       
38                    </representation>                   
39                </response>
40            </method>
41        </resource>
42       
43        <resource id="model" path="">
44                <doc title="Model summary" >
45                                                This interface provides summary of the xml structures used in the MdRecords
46                                                </doc>
47
48            <method name="GET">
49                <request>   
50                                <param name="operation" type="xs:string" fixed="queryModel" style="query">                       
51                    </param>                 
52                    <param name="q" type="xpath:XPath" style="query" >                       
53                        <doc>just default simple paths: Components/olac</doc>
54                    </param>
55                    <param name="collection" type="xs:URI" style="query" default="root">
56                                <doc>handles identifying the collection</doc>                       
57                    </param>                   
58                    <param name="maxdepth" type="xs:integer" default="1" style="query"/>
59                </request>
60                <response>
61                    <representation mediaType="text/xml" element="mds:Terms">
62                        <param name="cmdIndex" path="//mds:Terms/@path" repeating="true" type="xs:anyURI" style="plain">                           
63                        </param>
64                    </representation>                   
65                   
66                </response>
67            </method>
68        </resource>
69       
70        <resource id="search" path="">
71                <doc title="Search interface" >
72                                                This interface provides actual search-functionality. The query-format is XPath, the result is based on SRU/CQL standard (<code>searchRetrieveResponse</code>), individual records are full MDRecords (root elem: <code>CMD</code>).
73                                                </doc>
74
75            <method name="GET">
76                <request>   
77                                <param name="operation" type="xs:string" fixed="searchRetrieve" style="query">                       
78                    </param>                 
79                    <param name="query" type="xpath:XPath" style="query" />                       
80                    <param name="collection" type="xs:URI" style="query" default="root"/>                                           
81                    <param name="startRecord" type="xs:integer" default="1" style="query"/>
82                    <param name="maximumRecords" type="xs:integer" default="50" style="query"/>
83                </request>
84                <response>
85                    <representation mediaType="text/xml" element="mds:searchRetrieveResponse">
86                        <param name="records" path="//records/record/CMD" repeating="false" type="xs:anyURI" style="plain">                           
87                        </param>
88                    </representation>                                       
89                   
90                </response>
91            </method>
92        </resource>
93    </resources>           
94   
95</application>
Note: See TracBrowser for help on using the repository browser.