Validate Util Library Function
post
/rest/v19/bml/library/functions/actions/validate
This operation validates the Util Library function.
Request
Supported Media Types
- application/json
Util Library data.
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 library
The attributes list to add into library. -
description:
string
Title:
description
Usage and info about the library function. -
libraryFunctions:
array The library functions list to add into library
Title:
The library functions list to add into library
The library functions list to add into library. -
name:
string
Title:
name
Name of the library function. -
parameters:
array The parameters list to add into library
Title:
The parameters list to add into library
The parameters list to add into library. -
returnType:
object dataType-value
-
scriptText:
string
Title:
scriptText
Code functionality of the library function. -
testScript:
string
Title:
testScript
Debbuger test script. -
useTestScript:
string
Title:
useTestScript
Sample test script. -
variableName:
string
Title:
variableName
This field represents the variableName of the resource.
Nested Schema : The library attributes list to add into library
Type:
array
Title:
The library attributes list to add into library
The attributes list to add into library.
Show Source
Nested Schema : The library functions list to add into library
Type:
array
Title:
The library functions list to add into library
The library functions list to add into library.
Show Source
Nested Schema : The parameters list to add into library
Type:
array
Title:
The parameters list to add into library
The parameters list to add into library.
Show Source
Nested Schema : dataType-value
Type:
Show Source
object
-
displayValue:
string
Title:
displayValue
The library or field data type. -
value:
integer
Title:
value
the data type representative value.
Nested Schema : libraryFunctions
Type:
Show Source
object
-
namespace:
string
Title:
namespace
Util library floder name. -
type:
string
Title:
type
Library function type either util or commerce. -
variableName:
string
Title:
variableName
variableName of the libaray function.
Nested Schema : parametersList
Type:
Show Source
object
-
dataType:
object dataType-value
-
name:
string
Title:
name
Name of the parameter.
Response
Supported Media Types
- application/json
Default Response
No Content
Examples
The following example shows how to validate the Util Library function 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/functions/actions/validate
Request Body Sample
{ "variableName": "concatString", "returnType": { "value": 1 }, "attributes": [], "description": "This function returns a string. The 2 parameters are concatenated and returned to the calling function.", "name": "ConcatString", "libraryFunctions": [], "parameters": [{ "dataType": { "value": 2 }, "name": "stringOne" }, { "dataType": { "value": 2 }, "name": "stringTwo" } ], "scriptText": "return stringOne + \" \" + stringTwo;", "useTestScript": false }