fix: remove extra params causing 404
This commit is contained in:
@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/decentral1se/go-kimai/models"
|
||||
"git.autonomic.zone/knoflook/go-kimai/models"
|
||||
)
|
||||
|
||||
// GetAPITimesheetsActiveReader is a Reader for the GetAPITimesheetsActive structure.
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/decentral1se/go-kimai/models"
|
||||
"git.autonomic.zone/knoflook/go-kimai/models"
|
||||
)
|
||||
|
||||
// GetAPITimesheetsIDReader is a Reader for the GetAPITimesheetsID structure.
|
||||
|
@ -75,12 +75,6 @@ type GetAPITimesheetsRecentParams struct {
|
||||
*/
|
||||
Size string
|
||||
|
||||
/* User.
|
||||
|
||||
User ID to filter timesheets. Needs permission 'view_other_timesheet', pass 'all' to fetch data for all user (default: current user)
|
||||
*/
|
||||
User string
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
@ -156,17 +150,6 @@ func (o *GetAPITimesheetsRecentParams) SetSize(size string) {
|
||||
o.Size = size
|
||||
}
|
||||
|
||||
// WithUser adds the user to the get API timesheets recent params
|
||||
func (o *GetAPITimesheetsRecentParams) WithUser(user string) *GetAPITimesheetsRecentParams {
|
||||
o.SetUser(user)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetUser adds the user to the get API timesheets recent params
|
||||
func (o *GetAPITimesheetsRecentParams) SetUser(user string) {
|
||||
o.User = user
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *GetAPITimesheetsRecentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
||||
|
||||
@ -191,14 +174,6 @@ func (o *GetAPITimesheetsRecentParams) WriteToRequest(r runtime.ClientRequest, r
|
||||
return err
|
||||
}
|
||||
|
||||
// query param user
|
||||
qrUser := o.User
|
||||
qUser := qrUser
|
||||
|
||||
if err := r.SetQueryParam("user", qUser); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/decentral1se/go-kimai/models"
|
||||
"git.autonomic.zone/knoflook/go-kimai/models"
|
||||
)
|
||||
|
||||
// GetAPITimesheetsRecentReader is a Reader for the GetAPITimesheetsRecent structure.
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/decentral1se/go-kimai/models"
|
||||
"git.autonomic.zone/knoflook/go-kimai/models"
|
||||
)
|
||||
|
||||
// GetAPITimesheetsReader is a Reader for the GetAPITimesheets structure.
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/decentral1se/go-kimai/models"
|
||||
"git.autonomic.zone/knoflook/go-kimai/models"
|
||||
)
|
||||
|
||||
// PatchAPITimesheetsIDDuplicateReader is a Reader for the PatchAPITimesheetsIDDuplicate structure.
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/decentral1se/go-kimai/models"
|
||||
"git.autonomic.zone/knoflook/go-kimai/models"
|
||||
)
|
||||
|
||||
// PatchAPITimesheetsIDExportReader is a Reader for the PatchAPITimesheetsIDExport structure.
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/go-openapi/validate"
|
||||
|
||||
"github.com/decentral1se/go-kimai/models"
|
||||
"git.autonomic.zone/knoflook/go-kimai/models"
|
||||
)
|
||||
|
||||
// PatchAPITimesheetsIDMetaReader is a Reader for the PatchAPITimesheetsIDMeta structure.
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
|
||||
"github.com/decentral1se/go-kimai/models"
|
||||
"git.autonomic.zone/knoflook/go-kimai/models"
|
||||
)
|
||||
|
||||
// NewPatchAPITimesheetsIDParams creates a new PatchAPITimesheetsIDParams object,
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/decentral1se/go-kimai/models"
|
||||
"git.autonomic.zone/knoflook/go-kimai/models"
|
||||
)
|
||||
|
||||
// PatchAPITimesheetsIDReader is a Reader for the PatchAPITimesheetsID structure.
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/go-openapi/validate"
|
||||
|
||||
"github.com/decentral1se/go-kimai/models"
|
||||
"git.autonomic.zone/knoflook/go-kimai/models"
|
||||
)
|
||||
|
||||
// PatchAPITimesheetsIDRestartReader is a Reader for the PatchAPITimesheetsIDRestart structure.
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/decentral1se/go-kimai/models"
|
||||
"git.autonomic.zone/knoflook/go-kimai/models"
|
||||
)
|
||||
|
||||
// PatchAPITimesheetsIDStopReader is a Reader for the PatchAPITimesheetsIDStop structure.
|
||||
|
@ -15,7 +15,7 @@ import (
|
||||
cr "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/decentral1se/go-kimai/models"
|
||||
"git.autonomic.zone/knoflook/go-kimai/models"
|
||||
)
|
||||
|
||||
// NewPostAPITimesheetsParams creates a new PostAPITimesheetsParams object,
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/decentral1se/go-kimai/models"
|
||||
"git.autonomic.zone/knoflook/go-kimai/models"
|
||||
)
|
||||
|
||||
// PostAPITimesheetsReader is a Reader for the PostAPITimesheets structure.
|
||||
|
Reference in New Issue
Block a user