annotate _test/Resources/sample.xml @ 224:e6c050db7d98

resources schema update
author sergey
date Wed, 29 Aug 2012 17:28:13 +0400
parents edf011437be8
children a1e868b0fba9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
218
sergey
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
2 <resources xmlns="http://implab.org/schemas/resources"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
4 xsi:schemaLocation="http://implab.org/schemas/resources resources.xsd ">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
5 <root>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
6 <get expr="model" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
7
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
8 <resource>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
9 <name>projects</name>
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
10 <model expr="model" />
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
11 <get expr="model.projects" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
12
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
13 <post expr="model.CreateProject(project)">
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
14 <var name="project">
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
15 <transform class="IMPL::Web::Transform::BindModel" />
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
16 </var>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
17 <response>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
18 <redirect>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
19 <location locator="projects-locator" />
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
20 </redirect>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
21 </response>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
22 </post>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
23
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
24 <resource>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
25 <match>(\w+)</match>
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
26 <model expr="model.GetProject(resourceId)" />
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
27
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
28 <get expr="model" />
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
29 <put expr="model.update(data)">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
30 </put>
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
31
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
32 <resource>
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
33 <name>library</name>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
34 <model expr="model" />
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
35 <get expr="model" />
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
36 </resource>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
37 <resource>
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
38 <name>sources</name>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
39 <model expr="model" />
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
40 <get expr="model" />
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
41 </resource>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
42 </resource>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
43 </resource>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
44 </root>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
45 <contracts>
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
46 <contract id="project-contract">
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
47 <modelType>Benzin::Model::Project</modelType>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
48 <get expr="model"/>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
49 </contract>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
50 </contracts>
218
sergey
parents:
diff changeset
51 </resources>