Get All BML Common Functions

get

/rest/v19/bml/common/functions

This operation returns all BML common functions. BML common functions are the functions used within BML such as atoi() or len().

Request

Query Parameters
  • Exclude specified link types.
  • Restrict which fields shall be returned. The value is a comma delimited string and each token is a field name.
  • Allows to specify one or more filtering criteria. By default, no filtering is applied.
Back to Top

Response

Supported Media Types

Default Response

All BML Common Functions
Body ()
Root Schema : BML Common Functions
Type: object
Title: BML Common Functions
Common library functions.
Show Source
Nested Schema : BML Common Functions list
Type: array
Title: BML Common Functions list
List of BML Common Functions
Show Source
Nested Schema : bmlCommonFunction
Type: object
Show Source
Back to Top

Examples

The following example shows how to retrieve a list of all BML Common Functions by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X GET  -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v19/bml/common/functions

Response Body Sample

{
  "items": [{
      "name": "atof",
      "category": "STRING",
      "description": "Converts text that represents a number into a float number",
      "syntax": "Float atof(String str)",
      "example": "1. atof(\"\") throws an exception.",
      "shortSyntax": "atof(str)",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/cpq/rest/v19/bml/common/functions/atof"
        }
      ]
    }, {
      "name": "atoi",
      "category": "STRING",
      "description": "Converts text that represents a number into an integer number",
      "syntax": "Integer atoi(String str)",
      "example": "1. atoi(\"\") throws an exception.",
      "shortSyntax": "atoi(str)",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/cpq/rest/v19/bml/common/functions/atoi"
        }
      ]
    }, {
      "name": "decodebase64",
      "category": "STRING",
      "description": "Takes an encoded Base64 string and returns it as a plain text string.",
      "syntax": "String decodebase64(String str)",
      "example": "1. This function parses the string parameter which has been encoded into a Base64 format and decodes it into plain text string. Example: decodebase64(\"YWJj\"); will return the plain text format of String \"abc\".",
      "shortSyntax": "decodebase64(str)",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/cpq/rest/v19/bml/common/functions/decodebase64"
        }
      ]
    }, {
      "name": "encodebase64",
      "category": "STRING",
      "description": "Takes a string and returns it as a Base64 encoded string.",
      "syntax": "String encodebase64(String str)",
      "example": "1. This function parses the string parameter and converts it into its Base64 equivalent. Example: encodebase64(\"abc\"); will return the Base64 format of String \"abc\".",
      "shortSyntax": "encodebase64(str)",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/cpq/rest/v19/bml/common/functions/encodebase64"
        }
      ]
    }, {
      "name": "endswith",
      "category": "STRING",
      "description": "Checks whether a string ends with a provided substring",
      "syntax": "Boolean endswith(String str, String substring)",
      "example": "1. This function is case-sensitive. 2. If string ends with provided substring, the function returns true, false if not",
      "shortSyntax": "endswith(str, substring)",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/cpq/rest/v19/bml/common/functions/endswith"
        }
      ]
    }
  ],
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/cpq/rest/v19bml/common/functions"
    }
  ]
}
Back to Top