218
|
1 <?xml version="1.0" encoding="UTF-8"?>
|
221
|
2 <schema targetNamespace="http://implab.org/schemas/resources"
|
|
3 elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema"
|
|
4 xmlns:tns="http://implab.org/schemas/resources">
|
|
5 <element name="resources">
|
|
6 <complexType>
|
|
7 <sequence>
|
|
8 <element name="root" type="tns:restResource" />
|
|
9 <element name="typeMap" minOccurs="0">
|
|
10 <complexType>
|
|
11 <sequence>
|
|
12 <element name="item" maxOccurs="unbounded">
|
|
13 <complexType>
|
|
14 <complexContent>
|
|
15 <extension base="tns:restResource">
|
|
16 <sequence></sequence>
|
|
17 <attribute name="type" type="string">
|
|
18 </attribute>
|
|
19 </extension>
|
|
20 </complexContent>
|
|
21 </complexType>
|
|
22 </element>
|
|
23 </sequence>
|
|
24 </complexType>
|
|
25 </element>
|
|
26 <element name="locators" minOccurs="0">
|
|
27 <complexType>
|
|
28 <sequence>
|
|
29 <element name="locator" maxOccurs="unbounded">
|
|
30 <complexType>
|
|
31 <complexContent>
|
|
32 <extension base="tns:resourceLocator">
|
|
33 <attribute name="name" />
|
|
34 </extension>
|
|
35 </complexContent>
|
|
36 </complexType>
|
|
37 </element>
|
|
38 </sequence>
|
|
39 </complexType>
|
|
40 </element>
|
|
41 </sequence>
|
|
42 </complexType>
|
|
43 <keyref name="locator-key-ref" refer="tns:locator-key">
|
|
44 <selector xpath=".//tns:response/tns:locatorRef" />
|
|
45 <field xpath="@ref" />
|
|
46 </keyref>
|
|
47 <key name="locator-key">
|
|
48 <selector xpath="tns:locators/tns:locator" />
|
|
49 <field xpath="@name" />
|
|
50 </key>
|
|
51 </element>
|
|
52
|
|
53 <!-- abstract types -->
|
|
54 <complexType name="abstractBinding" abstract="true" />
|
|
55 <complexType name="abstractTransformation" abstract="true" />
|
|
56 <complexType name="abstractResult" abstract="true" />
|
|
57
|
|
58 <complexType name="restResource">
|
|
59 <sequence>
|
|
60 <element name="get" type="tns:restOperation" minOccurs="0" />
|
|
61 <element name="post" type="tns:restOperation" minOccurs="0" />
|
|
62 <element name="put" type="tns:restOperation" minOccurs="0" />
|
|
63 <element name="delete" type="tns:restOperation" minOccurs="0" />
|
|
64 <element name="resource" maxOccurs="unbounded"
|
|
65 minOccurs="0" >
|
|
66 <complexType>
|
|
67 <complexContent>
|
|
68 <extension base="tns:restResource">
|
|
69 </extension>
|
|
70 </complexContent>
|
|
71 </complexType>
|
|
72 </element>
|
|
73 </sequence>
|
|
74 </complexType>
|
|
75
|
|
76 <complexType name="restOperation">
|
|
77 <sequence>
|
|
78 <element name="bind" type="tns:methodBinding" />
|
|
79 <element name="parameters" type="tns:transformation"
|
|
80 minOccurs="0" />
|
|
81 <element name="response" type="tns:abstractResult" minOccurs="0" />
|
|
82 </sequence>
|
|
83 </complexType>
|
|
84
|
|
85 <complexType name="methodBinding">
|
|
86 <sequence>
|
|
87 <element name="var" type="tns:bindingVariable" minOccurs="0"
|
|
88 maxOccurs="unbounded" />
|
|
89 </sequence>
|
|
90 <attribute name="text" type="string" use="required" />
|
|
91 </complexType>
|
|
92
|
|
93 <complexType name="bindingVariable">
|
|
94 <complexContent>
|
|
95 <extension base="tns:methodBinding">
|
|
96 <attribute name="name" type="string" />
|
|
97 </extension>
|
|
98 </complexContent>
|
|
99 </complexType>
|
|
100
|
|
101
|
|
102 <complexType name="transformation">
|
|
103 <attribute name="class" type="string" />
|
|
104 </complexType>
|
|
105
|
|
106 <complexType name="resourceLocator">
|
|
107 <sequence>
|
|
108 <element name="var" type="tns:bindingVariable" minOccurs="0"
|
|
109 maxOccurs="unbounded" />
|
|
110 <element name="template" type="string" />
|
|
111 </sequence>
|
|
112 </complexType>
|
|
113
|
|
114 <simpleType name="redirectCodes">
|
|
115 <restriction base="string">
|
|
116 <enumeration value="moved-permanently" />
|
|
117 <enumeration value="temporary-redirect" />
|
|
118 <enumeration value="see-other" />
|
|
119 </restriction>
|
|
120 </simpleType>
|
|
121
|
|
122 <complexType name="redirectResult">
|
|
123 <complexContent>
|
|
124 <extension base="tns:abstractResult">
|
|
125 <choice>
|
|
126 <element name="locator" type="tns:resourceLocator" />
|
|
127 <element name="locatorRef">
|
|
128 <complexType>
|
|
129 <attribute name="ref" type="string" />
|
|
130 </complexType>
|
|
131 </element>
|
|
132 <element name="status" type="tns:redirectCodes" minOccurs="0" />
|
|
133 </choice>
|
|
134 </extension>
|
|
135 </complexContent>
|
|
136 </complexType>
|
219
|
137
|
218
|
138 </schema> |