Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit 7a52524

Browse files
authored
Add support for PUT /_bulk (#1009)
Elastic client in Python uses the PUT method to perform a bulk request.
1 parent b80d423 commit 7a52524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quesma/quesma/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func ConfigureRouter(cfg *config.QuesmaConfiguration, sr schema.Registry, lm *cl
4545
return elasticsearchQueryResult(`{"cluster_name": "quesma"}`, http.StatusOK), nil
4646
})
4747

48-
router.Register(routes.BulkPath, and(method("POST"), matchedAgainstBulkBody(cfg, tableResolver)), func(ctx context.Context, req *mux.Request) (*mux.Result, error) {
48+
router.Register(routes.BulkPath, and(method("POST", "PUT"), matchedAgainstBulkBody(cfg, tableResolver)), func(ctx context.Context, req *mux.Request) (*mux.Result, error) {
4949

5050
body, err := types.ExpectNDJSON(req.ParsedBody)
5151
if err != nil {

0 commit comments

Comments
 (0)