fix: remove extra params causing 404

This commit is contained in:
2023-01-27 11:04:50 +01:00
parent 9e5aecc16f
commit 3bed130ed7
100 changed files with 111 additions and 136 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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...)
}

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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,

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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,

View File

@ -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.