Skip to content

Add new parameters to sort readings #5191

@judehung

Description

@judehung

🚀 Feature Request

Relevant Package [REQUIRED]

This feature request is for core-command

Description [REQUIRED]

When retrieving events from core-command, the current returned event doesn't guarantee the order of readings underline. For API friendly purpose, it would be a good enhancement to define sorting behavior by supporting new query parameters.

Describe the solution you'd like

Support new query parameters: readingSortBy and sortOrder to core-command GET device/name/{name}/{command} API:

Parameter Type Required Description Example
readingSortBy string No reading field to sort by: "name" or "origin" name
sortOrder string No sorting order: "asc" or "desc" desc

Describe alternatives you've considered

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Icebox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions