Tripletex / Tripletex/tripletex-api2

Batch support for PUT /inventory/stocktaking/productline

Open
#104 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
49
Forks
47
Avg merge
1h 1m
Merged PRs (30d)
1

Description

Hi,

Today we need to update thousands of lines on a single stocktaking in a single operation.

Currently, the API forces us to issue a single PUT request for each line, like this:

HTTP PUT /inventory/stocktaking/productline/123 with payload

{
    "id": 123,
    "count": 7
}

We want a "batch" endpoint handling multiple lines in a single request, something like this:

HTTP PUT /inventory/stocktaking/productline with payload

[
  {
    "count": 7,
    "id": 123
  },
  {
    "count": 8,
    "id": 3231
  }
]

Can this be implemented before the next stocktaking season ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing PUT /inventory/stocktaking/productline/{id} endpoint and its request handling. Define the batch endpoint's validation and response behavior, then verify that one request can update multiple product lines as shown in the issue.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.