@@ -12,36 +12,36 @@ function model::processData(data: String[1]): String[1]
1212
1313###HostedService
1414// Basic hosted service with UserList ownership
15- ^ HostedService model::BasicHostedService
15+ HostedService model::BasicHostedService
1616{
17-    pattern =  '/api/greet/{name}';
18-    ownership = ^ UserList {  users =  [
17+    pattern :  '/api/greet/{name}';
18+    ownership :  UserList {users:  [
1919      'user1',
2020      'user2'
21-    ]  };
22-    function =  model::greet(String[1]):String[1];
23-    documentation =  'A simple hosted service that greets users by name';
24-    autoActivateUpdates =  true;
21+    ]};
22+    function :  model::greet(String[1]):String[1];
23+    documentation :  'A simple hosted service that greets users by name';
24+    autoActivateUpdates :  true;
2525}
2626
2727// Hosted service with Deployment ownership and stereotypes
28- ^ HostedService <<meta::pure::profiles::doc.doc>> {doc.doc = 'Example with deployment ownership'} model::DeploymentHostedService
28+ HostedService <<meta::pure::profiles::doc.doc>> {doc.doc = 'Example with deployment ownership'} model::DeploymentHostedService
2929{
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;
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;
3535}
3636
3737// Hosted service with post-deployment actions
38- ^ HostedService model::AdvancedHostedService
38+ HostedService model::AdvancedHostedService
3939{
40-    pattern =  '/api/advanced/{param}';
41-    ownership = ^ UserList {  users =  [
40+    pattern :  '/api/advanced/{param}';
41+    ownership :  UserList {users:  [
4242      'admin'
43-    ]  };
44-    function =  model::processData(String[1]):String[1];
45-    documentation =  'Advanced hosted service with post-deployment actions';
46-    autoActivateUpdates =  true;
43+    ]};
44+    function :  model::processData(String[1]):String[1];
45+    documentation :  'Advanced hosted service with post-deployment actions';
46+    autoActivateUpdates :  true;
4747}
0 commit comments