Skip to content

API v2 get paginated global tasks #980

@c8y3

Description

@c8y3

Implement endpoint GET /api/v2/global-tasks to get a paginated list of global tasks

  • successful GET should return 200
  • field data should be present
  • fields data should be [] when there are no elements
  • field total should return 0 when there are no elements
  • field total should return 1 when there is a customer
  • it should accept page, per_page parameters
  • it should accept order_by and sort_dir parameters
  • it should return 400 when the field specified on order_by does not exist
  • fields last_page, current_page and next_page should be present in result
  • introduce a method at the business level
  • use object PaginationParameter
  • check returned object is uniform with other endpoints, use the correct schema object
  • deprecate GET /global/tasks/list
  • openapi: document endpoint
  • openapi: deprecate GET /global/tasks/list

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions