how is Scripted REST API endpoint determined?

Dave Oshinsky
Tera Expert

If I create a Scripted REST API named "xyzzy" in my PDI, the endpoint ends up:

"/api/1048948/xyzzy"

 

Is there a programmatic way to query for the "1048948" portion of the URI?  It seems to be some property of the instance, but I'm not sure where that property is located.

 

Alternatively, is there a system or other table that contains the scripted REST API info?  If so, querying that table could yield the information that "xyzzy" maps to "/api/1048948/xyzzy" endpoint.

1 ACCEPTED SOLUTION

Alex Rose
Tera Guru

This portion of the url is the company code for the instance.  You can find it in system properties: glide.appcreator.company.code

View solution in original post

2 REPLIES 2

Alex Rose
Tera Guru

This portion of the url is the company code for the instance.  You can find it in system properties: glide.appcreator.company.code

Dave Oshinsky
Tera Expert

Thanks @Alex Rose , I see this in sys_properties

 

<sys_properties>
<choices/>
<description>Application development unique vendor key</description>
<ignore_cache>true</ignore_cache>
<is_private>true</is_private>
<name>glide.appcreator.company.code</name>
<read_roles/>
<suffix/>
<sys_class_name>sys_properties</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2014-04-04 04:33:55</sys_created_on>
<sys_id>8fc888b2d77311004f6a0eca5e6103e6</sys_id>
<sys_mod_count>12</sys_mod_count>
<sys_name>glide.appcreator.company.code</sys_name>
<sys_package>9599df03b4232110320f8dc279c8041a</sys_package>
<sys_policy>read</sys_policy>
<sys_scope>global</sys_scope>
<sys_update_name>sys_properties_8fc888b2d77311004f6a0eca5e6103e6</sys_update_name>
<sys_updated_by>system</sys_updated_by>
<sys_updated_on>2023-07-25 22:17:43</sys_updated_on>
<type>string</type>
<value>1048948</value>
<write_roles/>
</sys_properties>