| 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' } | 
| } |