Skip to content

Adds /batch/ endpoint for batch processing api requests#807

Open
djperrefort wants to merge 18 commits intomainfrom
atomic
Open

Adds /batch/ endpoint for batch processing api requests#807
djperrefort wants to merge 18 commits intomainfrom
atomic

Conversation

@djperrefort
Copy link
Copy Markdown
Member

This PR introduces the batch app, a new endpoint allowing clients to submit multiple API requests as a single atomic job.

Rather than issuing requests individually and handling partial failures in client code, consumers can group related operations into an ordered sequence of steps executed within a single database transaction. If any step fails, the entire transaction is rolled back. Steps can also reference the response body of previous steps using @ref{alias.dotpath} tokens, allowing the output of one request (e.g. a newly created record's ID) to be forwarded as input to the next. An optional dry_run mode executes all steps without persisting any changes, allowing users to validate a job before committing it.

Comment thread keystone_api/apps/batch/views.py Fixed
@djperrefort djperrefort changed the title Atomic Adds /batch/ endpoint for batch processing api requests Apr 16, 2026
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants