218
|
1 <?xml version="1.0" encoding="UTF-8"?>
|
221
|
2 <resources xmlns="http://implab.org/schemas/resources"
|
|
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4 xsi:schemaLocation="http://implab.org/schemas/resources resources.xsd ">
|
|
5 <root>
|
|
6 <get>
|
222
|
7 <bind bind="model" />
|
221
|
8 </get>
|
|
9
|
|
10 <resource name="projects">
|
|
11 <contract>
|
|
12 <get>
|
222
|
13 <bind bind="parent.model.projects" />
|
221
|
14 </get>
|
|
15 <post>
|
222
|
16 <bind bind="parent.model.CreateProject($form)">
|
|
17 <var name="form" bind="request"/>
|
221
|
18 </bind>
|
222
|
19 <response xsi:type="redirectResponse">
|
|
20 <locatorRef ref="relative-locator"/>
|
|
21 </response>
|
221
|
22 </post>
|
|
23 </contract>
|
222
|
24
|
|
25 <resource match="(\w+)">
|
|
26
|
|
27 </resource>
|
221
|
28 </resource>
|
|
29 </root>
|
|
30 <typeMap>
|
|
31 </typeMap>
|
|
32 <locators>
|
222
|
33 <locator name="relative-locator">
|
|
34 <var name="id" bind="model.id" />
|
|
35 <var name="parent" bind="parent.location" />
|
221
|
36 <template>$parent/$id</template>
|
|
37 </locator>
|
222
|
38 <locator name="projects-locator">
|
|
39 <var name="id" bind="model.id" />
|
|
40 <var name="projects" bind="application.locate('projects')" />
|
221
|
41 <template>$projects/$id</template>
|
|
42 </locator>
|
|
43 </locators>
|
218
|
44 </resources> |