diff --git a/client/internal/http/object.go b/client/internal/http/object.go index 4e44eac..39e84ab 100644 --- a/client/internal/http/object.go +++ b/client/internal/http/object.go @@ -53,7 +53,7 @@ func (s *ObjectService) ListByIDs(ctx *gin.Context) { log := logger.WithField("HTTP", "Object.ListByIDs") var req cdsapi.ObjectListByIDs - if err := ctx.ShouldBindJSON(&req); err != nil { + if err := ctx.ShouldBindQuery(&req); err != nil { log.Warnf("binding body: %s", err.Error()) ctx.JSON(http.StatusBadRequest, Failed(errorcode.BadArgument, "missing argument or invalid argument")) return