Skip to content

Commit ed86633

Browse files
authored
Merge pull request #204 from ioet/fix-pag
fix: pag
2 parents f90cd23 + c414a56 commit ed86633

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

time_tracker_api/time_entries/time_entries_namespace.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,54 @@ def get(self):
382382
location='args',
383383
)
384384

385+
paginated_attribs_parser.add_argument(
386+
'user_id',
387+
required=False,
388+
store_missing=False,
389+
help="(Filter) User to filter by",
390+
location='args',
391+
)
392+
393+
paginated_attribs_parser.add_argument(
394+
'month',
395+
required=False,
396+
store_missing=False,
397+
help="(Filter) Month to filter by",
398+
location='args',
399+
)
400+
401+
paginated_attribs_parser.add_argument(
402+
'year',
403+
required=False,
404+
store_missing=False,
405+
help="(Filter) Year to filter by",
406+
location='args',
407+
)
408+
409+
paginated_attribs_parser.add_argument(
410+
'start_date',
411+
required=False,
412+
store_missing=False,
413+
help="(Filter) Start to filter by",
414+
location='args',
415+
)
416+
417+
paginated_attribs_parser.add_argument(
418+
'end_date',
419+
required=False,
420+
store_missing=False,
421+
help="(Filter) End time to filter by",
422+
location='args',
423+
)
424+
425+
paginated_attribs_parser.add_argument(
426+
'timezone_offset',
427+
required=False,
428+
store_missing=False,
429+
help="(Filter) Time zone difference, in minutes, from current locale (host system settings) to UTC.",
430+
location='args',
431+
)
432+
385433

386434
@ns.route('/paginated')
387435
@ns.response(HTTPStatus.OK, 'Time Entries paginated')

0 commit comments

Comments
 (0)