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

API endpoint for user pins should be under /user/

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

      Currently, the API endpoint to get a user's pins is {}{{/1/$user_name/pins.
      {}}}For consistency with other endpoints relating to a user's data, the endpoint should be {{/1/user/$user_name/pins }} with an extra /user/ in there.

      Same goes for /pins/following

          [LB-1078] API endpoint for user pins should be under /user/

          Abhijeet Chatterjee added a comment - https://github.com/metabrainz/listenbrainz-server/pull/1941

          Abhijeet Chatterjee added a comment - - edited

          @Monkey I would like to give this issue a try.

          These changes refer to the file only  
          1. pinned_recording_api.py

          or the  user.py too.

           

          Abhijeet Chatterjee added a comment - - edited @Monkey I would like to give this issue a try. These changes refer to the file only   1. pinned_recording_api.py or the   user.py too.  

            Unassigned Unassigned
            mr_monkey Monkey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package