annotate _test/Resources/sample.xml @ 223:edf011437be8

updated resources schema
author sergey
date Tue, 28 Aug 2012 17:29:42 +0400
parents 84a6382b49c8
children e6c050db7d98
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>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
10 <model expr="model"/>
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)">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
14 <var name="project" expr="BindModel()"/>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
15 <response xsi:type="RedirectResponse">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
16 <locatorRef ref="projects-locator" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
17 </response>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
18 </post>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
19
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
20 <resource>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
21 <match>(\w+)</match>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
22 <model expr="model.GetProject(resourceId)"/>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
23
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
24 <get expr="model"/>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
25 <put expr="model.update(data)">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
26 </put>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
27
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
28 <resource>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
29 <name>library</name>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
30 <model expr="model"/>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
31 <get expr="model"/>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
32 </resource>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
33 <resource>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
34 <name>sources</name>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
35 <model expr="model"/>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
36 <get expr="model"/>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
37 </resource>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
38 </resource>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
39 </resource>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
40 </root>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
41 <contracts>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
42 <contract id="project-contract">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
43 <modelType>Benzin::Model::Project</modelType>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
44 <get/>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
45 </contract>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
46 </contracts>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
47 <locators>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
48 <locator name="relative-locator">
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
49 <var name="id" expr="model.id" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
50 <var name="parent" expr="parent.location" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
51 <template>$parent/$id</template>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
52 </locator>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
53 <locator name="projects-locator">
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
54 <var name="id" expr="model.id" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
55 <var name="projects" expr="application.locate('projects')" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
56 <template>$projects/$id</template>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
57 </locator>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
58 </locators>
218
sergey
parents:
diff changeset
59 </resources>