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