GET /categories/detail/{menuItemId}

Get detail of given category including its parameters and values

Headers

  • X-Application-Name string

Path parameters

  • menuItemId integer Required

    Category identifier

Query parameters

  • client_id string Required

    Client identifier

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • data object
      Hide data attributes Show data attributes object
      • name string

        Sap category name

      • sapId string

        Sap category id

      • categoryConditions array[object]
        Hide categoryConditions attributes Show categoryConditions attributes array[object]
        • parameter string

          Parameter condition ID

        • operator string

          Parameter condition operator

        • value string

          Parameter condition value

      • otherParameters array[object]
        Hide otherParameters attributes Show otherParameters attributes array[object]
        • value string Required

          Parameter identifier

        • text string Required

          Title of the parameter

        • unit string Required

          Unit of the parameter

    • result object
      Hide result attributes Show result attributes object
      • code integer(int)
      • status string
GET /categories/detail/{menuItemId}
curl \
 -X GET https://mpapi.proxy.omnicado.com/v1/categories/detail/451?client_id=yourClientId&client_id=api_token_value \
 -H "X-Application-Name: myApplicationName"
Response examples (200)
{
  "data": {
    "name": "Bílá vína",
    "sapId": "MP001FX",
    "categoryConditions": [
      {
        "parameter": "MP_KIND_OF_WINE",
        "operator": "=",
        "value": "bílé víno"
      }
    ],
    "otherParameters": [
      {
        "value": "MANUAL_SHOWER",
        "text": "Ruční sprcha",
        "unit": "NULL"
      }
    ]
  },
  "result": {
    "code": 200,
    "status": "OK"
  }
}
Response examples (200)
{
  "data": {
    "name": "Bílá vína",
    "sapId": "MP001FX",
    "categoryConditions": [
      {
        "parameter": "MP_KIND_OF_WINE",
        "operator": "=",
        "value": "bílé víno"
      }
    ],
    "otherParameters": [
      {
        "value": "MANUAL_SHOWER",
        "text": "Ruční sprcha",
        "unit": "NULL"
      }
    ]
  },
  "result": {
    "code": 200,
    "status": "OK"
  }
}