Ratings API returns URLs depending in app
parameter, but this isn't documented
#1910
Labels
Milestone
app
parameter, but this isn't documented
#1910
The Ratings detail/list API aren't documented as accepting the
app
parameter. But because they return URLs to user profiles (user.url
), and user profiles URLs do depend on an app, it uses theapp
parameter if present, falling back toUser-Agent
if not.Since user profiles do have links to add-ons, we likely want to keep that behavior and:
app
to ratings API calls - because otherwise we're usingUser-Agent
, despite it not being part of the cache key for the API, resulting in random behavior.Example (see the
user.url
properties, which will differ depending on whether or not you add theapp
parameter, what yourUser-Agent
is, and whether or not this is served from CDN cache):https://addons-dev.allizom.org/api/v5/ratings/rating/?addon=awesome-screenshot-plus-&page=1&lang=en-US
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: