218
|
1 <?xml version="1.0" encoding="UTF-8"?>
|
219
|
2 <schema targetNamespace="http://implab.org/schemas/resources" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://implab.org/schemas/resources">
|
218
|
3 <element name="resources">
|
|
4 <complexType>
|
|
5 <sequence>
|
|
6 <element name="root" type="tns:restResource"></element>
|
219
|
7 <element name="typeMap" minOccurs="0">
|
218
|
8 <complexType>
|
|
9 <sequence>
|
219
|
10 <element name="item" maxOccurs="unbounded">
|
218
|
11 <complexType>
|
|
12 <complexContent>
|
|
13 <extension
|
|
14 base="tns:restResource">
|
|
15 <sequence></sequence>
|
|
16 <attribute
|
|
17 name="type" type="string">
|
|
18 </attribute>
|
|
19 </extension>
|
|
20 </complexContent>
|
|
21 </complexType></element>
|
|
22 </sequence>
|
220
|
23 </complexType>
|
|
24 </element>
|
218
|
25 </sequence>
|
|
26 </complexType>
|
|
27 </element>
|
|
28
|
219
|
29 <!-- abstract types -->
|
|
30 <complexType name="abstractBinding" abstract="true"/>
|
|
31 <complexType name="abstractTransformation" abstract="true" />
|
|
32 <complexType name="abstractResult" abstract="true" />
|
|
33
|
218
|
34 <complexType name="restResource">
|
|
35 <sequence>
|
220
|
36 <element name="get" type="tns:restOperation" minOccurs="0"/>
|
|
37 <element name="post" type="tns:restOperation" minOccurs="0"/>
|
|
38 <element name="put" type="tns:restOperation" minOccurs="0"/>
|
|
39 <element name="delete" type="tns:restOperation" minOccurs="0"/>
|
|
40 <element name="resource" type="string" maxOccurs="unbounded" minOccurs="0"/>
|
218
|
41 </sequence>
|
|
42 </complexType>
|
|
43
|
|
44 <complexType name="restOperation">
|
|
45 <sequence>
|
220
|
46 <element name="bind" type="tns:methodBinding"/>
|
|
47 <element name="parameters" type="tns:transformation" minOccurs="0"/>
|
|
48 <element name="result" type="tns:abstractResult" minOccurs="0"/>
|
218
|
49 </sequence>
|
|
50 </complexType>
|
219
|
51
|
|
52 <complexType name="methodBinding" >
|
220
|
53 <sequence>
|
|
54 <element name="var" type="tns:bindingVariable" minOccurs="0" maxOccurs="unbounded"/>
|
|
55 </sequence>
|
|
56 <attribute name="text" type="string" use="required" />
|
|
57 </complexType>
|
|
58
|
|
59 <complexType name="bindingVariable">
|
219
|
60 <complexContent>
|
220
|
61 <extension base="tns:methodBinding">
|
|
62 <attribute name="name" type="string"/>
|
219
|
63 </extension>
|
|
64 </complexContent>
|
|
65 </complexType>
|
|
66
|
220
|
67
|
219
|
68 <complexType name="transformation">
|
|
69 <attribute name="class" type="string" />
|
|
70 </complexType>
|
|
71
|
|
72 <complexType name="resourceLocator">
|
|
73 <sequence>
|
220
|
74 <element name="var" type="tns:bindingVariable" minOccurs="0" maxOccurs="unbounded"/>
|
219
|
75 <element name="template" type="string" />
|
|
76 </sequence>
|
|
77 </complexType>
|
|
78
|
|
79 <simpleType name="redirectCodes">
|
|
80 <restriction base="string">
|
|
81 <enumeration value="moved-permanently"/>
|
|
82 <enumeration value="temporary-redirect"/>
|
|
83 <enumeration value="see-other"/>
|
|
84 </restriction>
|
|
85 </simpleType>
|
|
86
|
|
87 <complexType name="redirectResult">
|
|
88 <complexContent>
|
|
89 <extension base="tns:abstractResult">
|
|
90 <sequence>
|
|
91 <element name="locator" type="tns:resourceLocator" />
|
|
92 <element name="status" type="tns:redirectCodes" minOccurs="0"/>
|
|
93 </sequence>
|
|
94 </extension>
|
|
95 </complexContent>
|
|
96 </complexType>
|
|
97
|
218
|
98 </schema> |