Debug Util Library Function
post
/rest/v19/bml/library/functions/actions/debug
This operation runs the Util Library function with provided input values.
Request
Supported Media Types
- application/json
Debug Util Library.
Root Schema : createUtilibrary-request
Type:
Show Source
object-
attributes:
array The library attributes list to add into library
Title:
The library attributes list to add into libraryThe attributes list to add into library. -
description:
string
Title:
descriptionUsage and info about the library function. -
libraryFunctions:
array The library functions list to add into library
Title:
The library functions list to add into libraryThe library functions list to add into library. -
name:
string
Title:
nameName of the library function. -
parameters:
array The parameters list to add into library
Title:
The parameters list to add into libraryThe parameters list to add into library. -
returnType:
object dataType-value
-
scriptText:
string
Title:
scriptTextCode functionality of the library function. -
testScript:
string
Title:
testScriptDebbuger test script. -
useTestScript:
string
Title:
useTestScriptSample test script. -
variableName:
string
Title:
variableNameThis field represents the variableName of the resource.
Nested Schema : The library attributes list to add into library
Type:
arrayTitle:
The library attributes list to add into libraryThe attributes list to add into library.
Show Source
Nested Schema : The library functions list to add into library
Type:
arrayTitle:
The library functions list to add into libraryThe library functions list to add into library.
Show Source
Nested Schema : The parameters list to add into library
Type:
arrayTitle:
The parameters list to add into libraryThe parameters list to add into library.
Show Source
Nested Schema : dataType-value
Type:
Show Source
object-
displayValue:
string
Title:
displayValueThe library or field data type. -
value:
integer
Title:
valuethe data type representative value.
Nested Schema : libraryFunctions
Type:
Show Source
object-
namespace:
string
Title:
namespaceUtil library floder name. -
type:
string
Title:
typeLibrary function type either util or commerce. -
variableName:
string
Title:
variableNamevariableName of the libaray function.
Nested Schema : parametersList
Type:
Show Source
object-
dataType:
object dataType-value
-
name:
string
Title:
nameName of the parameter.
Response
Supported Media Types
- application/json
Default Response
Debug response.
Root Schema : debugLibrary-response
Type:
Show Source
object-
returnData:
string
Title:
returnDataIt's specify the script data. -
scriptSize:
string
Title:
scriptSizeIt's specify the compiled script size.
Examples
The following example shows how to run the Util Library function with provided input values by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X POST -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/bml/library/funtions/actions/debug
Request Body Sample
{
"returnType": {
"value": 1
},
"namespace": "nameSpace11",
"attributes": [],
"name": "ConcatString",
"libraryFunctions": [],
"parameters": [
{
"dataType": {
"value": 2
},
"name": "stringOne",
"value": "Debuging"
},
{
"dataType": {
"value": 2
},
"name": "stringTwo",
"value": "Script"
}
],
"scriptText": "return stringOne + \" \" + stringTwo;",
"variableName": "concatString",
"useTestScript": false
}
Response Body Sample
{
"returnData": "Debuging Script",
"scriptSize": "*** Compiled script size: 85 bytes ***"
}