Initializing help system before first use

Absolute Request Paths

Normally, the path provided to any of the dmphttp* functions is relative to the URL of the dmpresource. For example, if the dmpresource 'res' references a component with root URL https://app.dms.usw2.ficoanalyticcloud.com/16m0jgaeei/, then the following code:

httpStatusCode := dmphttpget(res,'/rest/runtime/executions','result.json')

will initiate a request to https://app.dms.usw2.ficoanalyticcloud.com/ 16m0jgaeei/rest/runtime/executions. When you are constructing the request path in the model, you will usually be constructing the path relative to the resource. But in some cases, you may want to use a path that was returned by a previous call to the resource, and that path may be relative to the hostname rather than the resource's root. (e.g. /16m0jgaeei/rest/runtime/executions) To support this case, if you specify a path that starts with the path from the resource URL, this will be treated as an absolute path and resolved relative to the hostname.

For example:

! 'res' is a dmpresource with URL https://app.dms.usw2.ficoanalyticcloud.com/16m0jgaeei

! Fetch https://app.dms.usw2.ficoanalyticcloud.com/16m0jgaeei/rest/runtime/executions
httpStatusCode := dmphttpget(res,'/16m0jgaeei/rest/runtime/executions','result.json')

! Fetch https://app.dms.usw2.ficoanalyticcloud.com/16m0jgaeei/rest/runtime/executions
httpStatusCode := dmphttpget(res,'/rest/runtime/executions','result.json')

! Fetch https://app.dms.usw2.ficoanalyticcloud.com/16m0jgaeei/16m0j/rest/runtime/executions
httpStatusCode := dmphttpget(res,'/16moj/rest/runtime/executions','result.json')

This behaviour can be disabled by setting the abspath attribute of the dmpresource to 'false', e.g.:

! Fetch https://app.dms.usw2.ficoanalyticcloud.com/16m0jgaeei/16m0jgaeei/rest/runtime/executions
res.abspath := false
httpStatusCode := dmphttpget(res,'/16m0jgaeei/rest/runtime/executions','result.json')

© 2001-2021 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.