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>
|
225
|
6 <get expr="$model" />
|
223
|
7
|
|
8 <resource>
|
|
9 <name>projects</name>
|
225
|
10 <model expr="$model" />
|
|
11 <get expr="$model->projects" />
|
223
|
12
|
225
|
13 <post expr="$model->CreateProject($project)">
|
224
|
14 <var name="project">
|
|
15 <transform class="IMPL::Web::Transform::BindModel" />
|
|
16 </var>
|
|
17 <response>
|
|
18 <redirect>
|
|
19 <location locator="projects-locator" />
|
|
20 </redirect>
|
223
|
21 </response>
|
|
22 </post>
|
221
|
23
|
223
|
24 <resource>
|
|
25 <match>(\w+)</match>
|
225
|
26 <model expr="$model->GetProject($resourceId)" />
|
224
|
27
|
225
|
28 <get expr="$model" />
|
|
29 <put expr="$model->update(data)">
|
|
30 <var name="data">
|
|
31 <transform class="IMPL::Web::Transform::BindModel" />
|
|
32 </var>
|
223
|
33 </put>
|
224
|
34
|
223
|
35 <resource>
|
224
|
36 <name>library</name>
|
225
|
37 <model expr="$model" />
|
|
38 <get expr="$model" />
|
223
|
39 </resource>
|
|
40 <resource>
|
224
|
41 <name>sources</name>
|
225
|
42 <model expr="$model" />
|
|
43 <get expr="$model" />
|
223
|
44 </resource>
|
|
45 </resource>
|
221
|
46 </resource>
|
|
47 </root>
|
223
|
48 <contracts>
|
225
|
49 <contract id="project-contract" modelType="IMPL::Web::Model::Project">
|
|
50 <get expr="$model"/>
|
224
|
51 </contract>
|
223
|
52 </contracts>
|
218
|
53 </resources> |