Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-753

Align properties of statistics endpoint payloads

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None

      Most of the endpoints that take count/offset return those values in the result. However, some don't (e.g. recordings returns the count but not the offset).

       

      Similarly, most that take a range return that range as a value as well. However, some don't (e.g. listening-activity), and some use a different property name (stats_range, e.g. daily-activity and artist-map).

       

      It would be nice if those were aligned so that they all return their query options in fields with names that match the option.

       

      Note: this is based on the docs at the moment, not on actual WS results.

            kartik1712 amCap1712
            zastai Tim Van Holder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package