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>
|
223
|
6 <get expr="model" />
|
|
7
|
|
8 <resource>
|
|
9 <name>projects</name>
|
224
|
10 <model expr="model" />
|
223
|
11 <get expr="model.projects" />
|
|
12
|
|
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>
|
224
|
26 <model expr="model.GetProject(resourceId)" />
|
|
27
|
|
28 <get expr="model" />
|
223
|
29 <put expr="model.update(data)">
|
|
30 </put>
|
224
|
31
|
223
|
32 <resource>
|
224
|
33 <name>library</name>
|
|
34 <model expr="model" />
|
|
35 <get expr="model" />
|
223
|
36 </resource>
|
|
37 <resource>
|
224
|
38 <name>sources</name>
|
|
39 <model expr="model" />
|
|
40 <get expr="model" />
|
223
|
41 </resource>
|
|
42 </resource>
|
221
|
43 </resource>
|
|
44 </root>
|
223
|
45 <contracts>
|
224
|
46 <contract id="project-contract">
|
|
47 <modelType>Benzin::Model::Project</modelType>
|
|
48 <get expr="model"/>
|
|
49 </contract>
|
223
|
50 </contracts>
|
218
|
51 </resources> |