Uploaded image for project: 'mod-inventory-storage'
  1. mod-inventory-storage
  2. MODINVSTOR-907

One API to POST instances, holdings and items

    XMLWordPrintable

Details

    • Story
    • Status: Draft (View Workflow)
    • P3
    • Resolution: Unresolved
    • None
    • None
    • Prokopovych
    • GBV
    • TBD

    Description

      We have three separate APIs for bulk insert and bulk update:

      When inserting an instance one often also inserts the holdings and items that belong to that instance. If there is a single endpoint that combines them into a single API the queries to fetch the instance for the holding and the query to fetch the holding for the item can be avoided.

      POST /instance-holdings-item-storage/batch/synchronous
      taking this body:

      {
        "instances": [ { ... }, ... ],
        "holdings":  [ { ... }, ... ],
        "items":     [ { ... }, ... ]
      }
      

      Disadvantages:

      • Difficult to implement because of complexity resulting in high development costs.
      • Other optimizations have better cost/benefit ratio (improving the three batch APIs mentioned above).

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                julianladisch Julian Ladisch
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:

                  TestRail: Runs

                    TestRail: Cases