@@ -14,34 +14,43 @@ function model::processData(data: String[1]): String[1]
1414// Basic hosted service with UserList ownership
1515HostedService model::BasicHostedService
1616{
17-    pattern : '/api/greet/{name}';
18-    ownership : UserList {users: [
19-       'user1',
20-       'user2'
21-    ]};
22-    function : model::greet(String[1]):String[1];
23-    documentation : 'A simple hosted service that greets users by name';
24-    autoActivateUpdates : true;
17+    pattern: 'api/greet/{name}';
18+    ownership: UserList 
19+    {
20+       users: [
21+          'user1',
22+          'user2'
23+       ]
24+    };
25+    function: model::greet(String[1]):String[1];
26+    documentation: 'A simple hosted service that greets users by name';
27+    autoActivateUpdates: true;
2528}
2629
2730// Hosted service with Deployment ownership and stereotypes
2831HostedService <<meta::pure::profiles::doc.doc>> {doc.doc = 'Example with deployment ownership'} model::DeploymentHostedService
2932{
30-    pattern : '/api/process/{data}';
31-    ownership : Deployment {identifier: '12345'};
32-    function : model::processData(String[1]):String[1];
33-    documentation : 'A hosted service that processes data with deployment ownership';
34-    autoActivateUpdates : false;
33+    pattern: 'api/process/{data}';
34+    ownership: Deployment 
35+    {
36+       identifier: '12345'
37+    };
38+    function: model::processData(String[1]):String[1];
39+    documentation: 'A hosted service that processes data with deployment ownership';
40+    autoActivateUpdates: false;
3541}
3642
3743// Hosted service with post-deployment actions
3844HostedService model::AdvancedHostedService
3945{
40-    pattern : '/api/advanced/{param}';
41-    ownership : UserList {users: [
42-       'admin'
43-    ]};
44-    function : model::processData(String[1]):String[1];
45-    documentation : 'Advanced hosted service with post-deployment actions';
46-    autoActivateUpdates : true;
46+    pattern: 'api/advanced/{param}';
47+    ownership: UserList 
48+    {
49+       users: [
50+          'admin'
51+       ]
52+    };
53+    function: model::processData(String[1]):String[1];
54+    documentation: 'Advanced hosted service with post-deployment actions';
55+    autoActivateUpdates: true;
4756}
0 commit comments