admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Quintiq file version 2.0
#parent: #root
Method GetQueryURL (String querykind) const declarative remote as String
{
  TextBody:
  [*
    url := this.RootURL().TrimBoth();
    
    if( url = '' )
    {
      url := '<3DSpace URL>';
    }
    
    if( not url.EndsWith( '/' ) )
    {
      url := url + '/';
    }
    
    if( querykind = Lib3DS_EntityKind::Object() )
    {
      url := url + 'resources/v1/model/bus?select=id&select=physicalid&select=name&select=type'
             + '&select=interface&select=attribute&select=attribute.type&select=attribute.value'
             + '&select=paths.path.id&select=paths.path.type&select=paths.path.value&select=paths.path.attribute%5bRoleSemantics%5d'
             + '&select=revision';
    }
    else if( querykind = Lib3DS_EntityKind::Relation() )
    {
      url := url + 'resources/v1/model/rel?select=id&select=physicalid&select=name&select=type'
             + '&select=from.id&select=to.id&select=torel.id&select=interface&select=attribute&select=attribute.type&select=attribute.value'
             + '&select=paths.path.id&select=paths.path.type&select=paths.path.value&select=paths.path.attribute%5bRoleSemantics%5d';
    }
    
    return url;
  *]
  InterfaceProperties { Accessibility: 'Module' }
}