Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Batch Request

    Scheduled Pinned Locked Moved Development
    3 Posts 2 Posters 638 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      DFARehnitz
      last edited by

      Hi Zusammen,

      wie muss man einen Batch Request zusammen bauen?

      Irgendwie habe ich dazu keine Beispiele gefunden, kann da jemand weiterhelfen?

      Gruß,

      Daniel

      1 Reply Last reply Reply Quote 0
      • D Offline
        DFARehnitz
        last edited by

        Hi Zusammen,

        ich habs raus bekommen...

        hier ein Beispiel:

        [{
            "method":  "cmdb.category.read",
            "params":  {
                           "objID":  12345,
                           "category":  "C__CATG__CONTACT",
                           "apikey":  "*******"
                       },
            "version":  "2.0",
            "id":  1
        },
        {
            "method":  "cmdb.category.read",
            "params":  {
                           "objID":  678910,
                           "category":  "C__CATG__CONTACT",
                           "apikey":  "*******"
                       },
            "version":  "2.0",
            "id":  2
        }]
        

        wichtig sind die "[" und "]" am Ende. Das als Body String übergeben mit Post gibt des Response zurück.

        Wichtig ist auch, das die IDs Eineindeutig sind.

        Gruß,

        Daniel

        1 Reply Last reply Reply Quote 0
        • Michael HuhnM Offline
          Michael Huhn
          last edited by

          Hallo @DFARehnitz

          du hast es zwar schon selbst herausgefunden aber hier mal ein Link zur Spezifikation von JSON Requests.
          Dort siehst du wie ein JSON aufgebaut sein muss.

          https://www.jsonrpc.org/specification

          1 Reply Last reply Reply Quote 0
          • First post
            Last post