Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login
    1. Home
    2. ali
    3. Posts
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Changing Language in json api

      Hi vqh,
      Thank You For Your Answer.
      How Can I Get The Following Output From API?

      For Example Get This Result:

      
      {
          "jsonrpc": "2.0",
          "result": {
              "General": {
                  "Title": "Che2-L11-d26265a05f6938c3",
                  "Category": "",
                  "Purpose": "",
                  "Condition": "Normal",
                  "CMDB status": "in operation ",
                  "Object ID": "1451",
                  "Object type": "کلاینت",
                  "SYSID": "SYSID_1494946391",
                  "Creation date": "2017-05-16 - 16:29:00 (admin)",
                  "SYSID": "SYSID_1494946391",
                  "Date of change": "2017-08-17 - 10:19:33 (admin)",
                  "Tags": "",
                  "Description": "",
                  },
              "Model": {
                  "سازنده": "HUAWEI",
                  "Model": "Che2-L11",
                  "Product ID": "",
                  "Service Tag": "",
                  "Serial number": "BY2XRJ156W042704",
                  "Firmware": "unknown",
                  "Description": "",
                  }
              }
      }
      
      
      posted in Development
      A
      ali
    • Changing Language in json api

      hi,
      I'm using i-doit api to get objects and list of each object's categories
      The problem is I want to show details of each category in other language(like German)

      {
          "jsonrpc": "2.0",
          "result": [
              {
                  "id": "9",
                  "objID": "933",
                  "title": "Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz [4 core(s) x86_64]",
                  "manufacturer": null,
                  "type": null,
                  "frequency": {
                      "title": 2.333
                  },
                  "frequency_unit": {
                      "id": "3",
                      "title": "GHz",
                      "const": "C__FREQUENCY_UNIT__GHZ",
                      "title_lang": "GHz"
                  },
                  "cores": "1",
                  "description": ""
              }
          ],
          "id": null
      }
      

      the code above is the response of calling cpu category for an object,I want to have an output like this code:

      {
          "jsonrpc": "2.0",
          "result": [
              {
                  "id": "9",
                  "objID": "933",
                  "عنوان": "Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz [4 core(s) x86_64]",
                  "سازنده": null,
                  "نوع": null,
                  "پردازنده": {
                      "عنوان": 2.333
                  },
                  "واحد فرکانس": {
                      "id": "3",
                      "عنوان": "GHz",
                      "const": "C__FREQUENCY_UNIT__GHZ",
                      "title_lang": "GHz"
                  },
                  "تعداد هسته": "1",
                  "توضیحات": ""
              }
          ],
          "id": null
      }
      

      is the a file to change title of details of each category?
      if there is none how this task can be done?

      posted in Development
      A
      ali