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>
|
|
7 <bind text="model" />
|
|
8 </get>
|
|
9
|
|
10 <resource name="projects">
|
|
11 <contract>
|
|
12 <get>
|
|
13 <bind text="parent.model.projects" />
|
|
14 </get>
|
|
15 <post>
|
|
16 <bind text="parent.model.CreateProject($form)">
|
|
17 <var name="form" text="request"/>
|
|
18 </bind>
|
|
19 </post>
|
|
20 </contract>
|
|
21 </resource>
|
|
22 </root>
|
|
23 <typeMap>
|
|
24 <item></item>
|
|
25 <item></item>
|
|
26 </typeMap>
|
|
27 <locators>
|
|
28 <locator name="relative">
|
|
29 <var name="id" text="model.id" />
|
|
30 <var name="parent" text="parent.location" />
|
|
31 <template>$parent/$id</template>
|
|
32 </locator>
|
|
33 <locator name="projects">
|
|
34 <var name="id" text="model.id" />
|
|
35 <var name="projects" text="application.locate('projects')" />
|
|
36 <template>$projects/$id</template>
|
|
37 </locator>
|
|
38 </locators>
|
218
|
39 </resources> |