Get All BOM Mapping Rules

get

/rest/v19/allProductFamilySetups/{allProdFamsVarName}/productFamilies/{prodFamVarName}/productLines/{prodLineVarName}/models/{modelVarName}/bomMappingRules

Use this endpoint to retrieve a list of BOM Mapping Rules for the specified Model.

Request

Supported Media Types
Path Parameters
Query Parameters
  • Allows expansion of relationships.
  • Restrict which fields shall be returned. The value is a comma delimited string and each token is a field name.
  • The requested page size, which limits the number of elements the collection should max return.
  • The offset of the page. By default, offset is 0, which means first page will be returned.
  • Specifies a comma-separated list of pairs to order the response by.
  • Allows to specify one or more filtering criteria. By default, no filtering is applied.
  • Specifies that the total count of records should be included in the response when doing pagination.
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : configBomMappingRuleSetups-collection
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Bom Mapping Rule
Type: object
Title: Bom Mapping Rule
Show Source
Nested Schema : Action Type
Type: object
Title: Action Type
Action Type of The Rule
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Condition Type
Type: object
Title: Condition Type
Condition Type of Rule
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Detail Type
Type: object
Title: Detail Type
Detail Type of Rule
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Reference Type
Type: object
Title: Reference Type
Type of the Reference
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Rule Type
Type: object
Title: Rule Type
Type of the Rule
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Rule Status
Type: object
Title: Rule Status
Status of Rule
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Back to Top

Examples

The following example shows how to retrieve a list of BOM Mapping Rules for the specified Model 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 "Accept: application/json"
https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/varioTablets/productLines/tablets/models/customTablet/bomMappingRules

Response Body Sample

{
  "hasMore": false,
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/varioTablets/productLines/tablets/models/customTablet/bomMappingRules"
    }
  ],
  "items": [{
      "orderNumber": 1,
      "bomVariableName": "varioTablet",
      "endDate": null,
      "refType": {
        "lookupCode": "4",
        "displayValue": "Model",
        "id": 38731888,
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_RULE_REF_TYPE%22%7D%7D"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v19/lookupValues/38731888"
          }
        ]
      },
      "description": null,
      "dateAdded": "2017-11-13T13:30:01.000Z",
      "detailType": {
        "lookupCode": "3",
        "displayValue": "Table Based",
        "id": 38731882,
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_RULE_DETAIL_TYPE%22%7D%7D"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v19/lookupValues/38731882"
          }
        ]
      },
      "ruleType": {
        "lookupCode": "23",
        "displayValue": "Bom Mapping Rule",
        "id": 38731896,
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_RULE_TYPE%22%7D%7D"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com//rest/v19/lookupValues/38731896"
          }
        ]
      },
      "processVariableName": "oraclecpqo",
      "id": 36594469,
      "conditionExpression": null,
      "variableName": "defaultBOMMappingRule",
      "dateModified": "2019-10-04T12:39:45.000Z",
      "label": "Default BOM Mapping Rule",
      "actionType": {
        "lookupCode": "1",
        "displayValue": "Standard",
        "id": 38731870,
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_RULE_ACTION_TYPE%22%7D%7D"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v19/lookupValues/38731870"
          }
        ]
      },
      "conditionType": {
        "lookupCode": "3",
        "displayValue": "Always True",
        "id": 38731877,
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_RULE_CONDITION_TYPE%22%7D%7D"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v19/lookupValues/38731877"
          }
        ]
      },
      "startDate": null,
      "status": {
        "lookupCode": "1",
        "displayValue": "Active",
        "id": 38731891,
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_RULE_STATUS%22%7D%7D"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v19/lookupValues/38731891"
          }
        ]
      },
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/varioTablets/productLines/tablets/models/customTablet/bomMappingRules/36594469"
        }, {
          "kind": "",
          "rel": "child",
          "name": "conditions",
          "href": "https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/varioTablets/productLines/tablets/models/customTablet/bomMappingRules/36594469/conditions"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/varioTablets/productLines/tablets/models/customTablet"
        }
      ]
    }
  ]
}
Back to Top