Граф коммитов

998 Коммитов

Автор SHA1 Сообщение Дата
Mathieu Pillard 28187a50c3 Add language tools API
This returns all valid, public dictionaries and language packs on
AMO in a single endpoint. Clients should then sort through the
results to display them as they see fit.
2017-07-18 14:52:17 +02:00
Andrew Williamson 868fd39a30 fix up formatting Auth internal docs page (#5927) 2017-07-17 15:07:44 +01:00
Andrew Williamson 3725414dcd Add Addon.requires_payment to model, api, devhub, and reviewer tools (#5893) 2017-07-17 14:27:29 +01:00
Andrew Williamson d681115192 find replacement addons admin interface (#5886) 2017-07-13 13:02:26 +01:00
Mathieu Pillard a9aa802333 Expose is_restart_required property on files in the search/detail API (#5858)
* Expose is_restart_required property on files in the search/detail API

* Fix mapping tests

* Replace no_restart field (and HTML/CSS for consistency) by is_restart_required

* Move migration now that 953 is taken

* Remove old model field entirely.
2017-07-11 13:44:37 +02:00
Mathieu Pillard 6607ee6ae1 Allow filtering of API search results by exact author username (#5857)
Allow filtering of API search results by exact author username
2017-07-10 13:29:05 +02:00
Andrew Williamson 10b44a670a Return extra profile information on login (#5818) 2017-07-05 13:36:17 +01:00
Andrew Williamson 75c8e3bdc7 Add authors.picture_url to Addon detail serializer (#5755) 2017-06-27 10:55:06 -07:00
Kumar McMillan 80a33c1579 Document how the addon param can be a slug too (#5750) 2017-06-22 17:51:05 -05:00
Kumar McMillan 27b2283e87 Update docs on available signing libraries (#5732) 2017-06-21 22:15:14 -05:00
Mathieu Pillard 6e6668692c Add a link to version upload in add-on API docs 2017-06-20 14:38:24 +02:00
Andrew Williamson 7a02e93ad7 review api doc update with new param names 2017-06-20 09:53:03 +01:00
Andrew Williamson 5b94db4d7c Change review list api to include empty reviews by default; (#5685) 2017-06-19 19:32:40 +01:00
Andrew Williamson 4379b76e6b Add an endpoint to clear the profile photo (#5645) 2017-06-19 19:32:03 +01:00
Andrew Williamson e971a1c054 Make Makefile cleaner by splitting tasks between host and container (#5634) 2017-06-15 09:41:40 +01:00
Andrew Williamson 87efb2789b Add default sorting to Collection API and specifiable sorting to CollectionAddon API (#5630) 2017-06-14 12:41:47 +01:00
Andrew Williamson 2e1e8858da Move collections API details to a separate page. (+ missing Accounts created property) (#5599) 2017-06-07 19:04:23 +01:00
Andrew Williamson 087233f6c3 Collections api addons edit (#5563) 2017-06-06 16:14:30 +01:00
Andrew Williamson 7fbb29d757 Add collections api edit/create/delete (#5501) 2017-06-01 13:08:02 +01:00
Andrew Williamson 84cc7aafb1 move accounts/profile endpoint where it's supposed to be, and with correct auth. (#5477) 2017-05-23 17:11:25 +01:00
Andrew Williamson 9585394c10 Add account (soft) delete to API (#5457) 2017-05-22 19:08:03 +01:00
Andrew Williamson 7d43e947a8 Add user notification API (#5435) 2017-05-22 15:37:16 +01:00
Andrew Williamson 1a2547db51 Add UserProfile edit API (#5392) 2017-05-16 13:21:53 +01:00
Mathieu Pillard 7c364dbe9f Merge pull request #5416 from diox/expose-bayesian-average-api
Expose bayesian rating average for add-ons in the API
2017-05-16 13:04:35 +02:00
Mathieu Pillard a14e999b9b Expose bayesian rating average for add-ons in the API 2017-05-16 12:31:35 +02:00
Andrew Williamson 66fd77c09a Implement read-only collections API (#5358) 2017-05-12 16:31:34 +01:00
Andrew Williamson a36c416fcc Expand accounts api to expose publicly viewable information for other users (#5318) 2017-05-05 17:19:40 +01:00
Andrew Williamson b838f3efb7 Lose l10n on UserProfile.bio and drop .lang, .region (#5279) 2017-05-02 17:21:02 +01:00
Andrew Williamson b098079c45 Hide empty reviews, apart from admins and your own (#5227) 2017-04-25 15:44:23 +01:00
Mathieu Pillard f679731e06 Merge pull request #5141 from diox/search-by-tag-name-in-api
Allow filtering by exact tag name in the search API
2017-04-11 11:53:56 +02:00
Mathieu Pillard dadfa28cb9 Allow filtering by exact tag name in the search API 2017-04-10 17:53:29 +02:00
Mathieu Pillard 0db5b066d1 Merge pull request #5140 from diox/expose-webextensions-api
Expose whether or not a file is a webextension in the API
2017-04-10 16:46:50 +02:00
Mathieu Pillard 9ccf487260 Expose whether or not a file is a webextension in the API 2017-04-10 13:24:43 +02:00
Mathieu Pillard e5d300256d Merge pull request #5129 from diox/api-auth-error-responses
Provide error codes for failed some API auth responses
2017-04-10 11:47:30 +02:00
Mathieu Pillard 74347d98a6 Provide error codes for failed API auth responses 2017-04-07 13:10:20 +02:00
Mathieu Pillard b572dd431f Merge pull request #5120 from diox/logging-2.0
Log to console using mozlog json format in dev/stage/prod
2017-04-06 19:26:42 +02:00
Mathieu Pillard a06590e4ba Log to console using mozlog json format in dev/stage/prod 2017-04-06 13:10:38 +02:00
Mathieu Pillard 0c7a2a5f3d Add optional filtering on `version` in reviews list API 2017-03-31 11:41:58 +02:00
Kumar McMillan db7e18f9d6 Removed "session cookie" reference from API docs since that's misleading 2017-03-24 10:34:28 +00:00
Mathieu Pillard 6d85577f07 Use a real token in the API docs example 2017-03-22 11:04:05 +00:00
Mathieu Pillard 4493197bbe Remove JWT for internal API auth, use token depending on user.pk and user.auth_id
This mimics how django creates session tokens, except a different salt is used.
When a user auth_id is changed, its sessions and tokens are no longer considered
valid.

Note: JWT created by external clients using their API keys are still valid, but
that's a different auth mechanism only used by a handful of APIs, like add-on
signing.
2017-03-16 17:32:23 +01:00
Mathieu Pillard 19177a796e Move commonware utils we use to our own repos
- Middlewares are integrated to existing ones or moved to amo.middlewares
- Logging is moved to core.logger
- All logging calls are modified to use core.logger
- In addition, get/set_user(), get/set_remote_addr() are moved to core
  to circumvent import issues.
2017-03-08 12:01:03 +01:00
Mathieu Pillard f0e3b40ade Merge pull request #4842 from diox/api-better-page-size-docs
Clarify documentation about pagination in the API
2017-03-06 12:39:51 +01:00
Mathieu Pillard c4542c5cbe Clarify documentation about pagination in the API 2017-03-06 12:39:38 +01:00
Mathieu Pillard ccd830913a Expose page_size in paginated API response
Fix #4837
2017-03-03 18:44:45 +01:00
Mathieu Pillard 216253f31a Parse review API 'show_grouped_ratings' param with a DRF BooleanField
Fixes issues we've been having with show_grouped_ratings='0' being
accepted as a truthy value, and makes things more coherent.
2017-02-21 19:16:27 +01:00
Mathieu Pillard 797a9b1883 Fix the URL for reviews list in API documentation 2017-02-16 21:36:55 +01:00
Mathieu Pillard 9031a6bb7d Refactor reviews API to change the URL to /api/v3/reviews/review/...
As a result of this, the addon (or user when listing) must now be
passed in GET/POST data. This allows the client to filter on both
parameters at the same time.
2017-02-16 11:22:28 +01:00
Andrew Williamson 7bc0463e97 Add API support for webextension permissions (#4651) 2017-02-14 15:58:19 +01:00
Mark Striemer 2b2fe676d3 Logout API for mobile pages (#4590)
Supports mozilla/addons-frontend#1557.
2017-02-07 11:25:28 -06:00
Christopher Grebs 7debceccd3 Merge pull request #4505 from mozilla/feature/2593-supercreator-createuser
Extend createsuperuser command to allow SuperCreate assignment.
2017-01-31 17:09:46 +01:00
Christopher Grebs d2fbdc8ebe Extend createsuperuser command to allow SuperCreate assignment.
This re-adds --no-input arguments and handles it properly.

Fixes #2593
2017-01-31 14:49:20 +01:00
Andrew Williamson 1bd7fcc7ac update signing api docs with detail on `channel` parameter (#4530) 2017-01-30 18:46:41 +00:00
Andreas Wagner 6240aaf007 Rename editor to reviewer 2017-01-24 11:15:39 +01:00
Andy McKay 6f8f61a89e explain setup more 2017-01-13 09:09:39 -08:00
Andy McKay 29dfdd349f fix documentation url 2017-01-03 14:44:08 -08:00
Andy McKay d5f02bc9db Merge pull request #4170 from andymckay/github-again
github validate hook again
2017-01-03 09:13:33 -08:00
Mathieu Pillard dbb61e0907 Add explicit sort by relevance option in search API
Also fix docs to explain that sorting by relevance will be the
default if a search query is specified.
2017-01-03 15:17:39 +01:00
Andy McKay 99835d73ca update after feedback 2016-12-23 12:18:42 -08:00
Andy McKay 8cda544825 github validate hook again 2016-12-23 11:43:57 -08:00
Mathieu Pillard 1c21a0cc5c Add 'slug' to the convenience add-on object in review API
Fix #4038
2016-11-22 14:48:27 +01:00
Mathieu Pillard 7892a039c6 Stop exposing {addon}.is_listed in the API
Consumers should look at the version channel instead since add-ons
will soon be able to have both listed and unlisted versions.

Fix #3922
2016-11-21 13:08:13 +01:00
Matthew Riley MacPherson 221685d840 Add license info to current_version (fix #3964) 2016-11-17 11:44:28 +00:00
Mathieu Pillard ec9aa9e76d Filter versions API by channel, and expose channel property
This is a backwards-incompatible change, the values for the
`filter` parameter are changing. In addition, permission checks
are enforced more strictly, returning 401/403 when trying to use
a filter that the client does not have the right permissions for.
2016-11-09 15:35:23 +01:00
Mathieu Pillard fe0cd88b38 Expose latest unlisted version in API for authors/unlisted reviewers 2016-11-08 17:25:35 +01:00
Christopher Grebs 0fad54879b Correct reference to install-with-docker section. Fixes #3897 2016-10-31 10:58:34 +01:00
Christopher Grebs c7c324c2be Fix typo in categories api docs. 2016-10-28 14:36:25 +02:00
Stuart Colville 2b8fa02964 Fix typo 2016-10-27 17:24:04 +01:00
Mark Striemer 40187ce88e Document requirements for third-party usage (#3867) 2016-10-27 11:10:05 -05:00
Christopher Grebs 07a652f51d Implement a new /v3/categories/ endpoint for our static categories.
Fixes #3676, supports mozilla/addons-frontend#1237
2016-10-26 19:53:26 +02:00
Stuart Colville 631ee589dd Make warning about sharing API creds clearer 2016-10-20 09:34:14 +01:00
Mark Striemer fe20a9de16 Include AddonViewSet in internal views (fixes #3798) (#3800) 2016-10-19 14:12:58 -05:00
Mathieu Pillard 5d9b0ecacf Bring back documentation about how the translations app works 2016-10-19 12:50:56 +02:00
Christopher Grebs c4fac768ba Enhance JWT docs (ntp, new expiration time) (#3709)
* JWT-Docs: Note our longer expiration time.
* Suggest using tlsdate instead of NTP for security reasons.

Fixes #3689
2016-10-10 18:06:53 +02:00
Mathieu Pillard d7c5cb44f9 Add user id to user object in API responses 2016-10-10 15:46:34 +02:00
Christopher Grebs ad307c697e Suggest using tlsdate instead of NTP for security reasons. 2016-10-10 15:28:58 +02:00
Christopher Grebs baa2fb55cb JWT-Docs: Note our longer expiration time. 2016-10-10 15:25:39 +02:00
Christopher Grebs 2eb78a0bc7 Remove accidental doc change. 2016-10-06 22:16:43 +02:00
Christopher Grebs c7f43a186f Include version ID in review API response. Fixes #3680
This returns an object for `review.version` rather than just
the actual id but still allows for only receiving the id
for `POST` and `PATCH` requests.
2016-10-06 12:31:39 +02:00
Mark Striemer 3311fb4291 Remove password support from super user create (supports #3049) (#3613) 2016-09-29 08:53:50 -05:00
Mathieu Pillard d1f1d09030 Merge pull request #3611 from diox/reviews-api-improve-docs
Improve Reviews API docs
2016-09-27 14:24:38 +02:00
Mathieu Pillard 337b6f20d3 Improve Reviews API docs
Also move flag error to the right field instead of exposing it
as __all__.
2016-09-27 11:29:04 +02:00
Mathieu Pillard d778caffdd Include add-on id in review API responses 2016-09-24 13:37:49 +02:00
Mathieu Pillard 96779aa20a Merge pull request #3551 from diox/api-reviews-ratings-aggregate
Add rating aggregates to the add-on review list API, if requested.
2016-09-21 13:46:57 +02:00
Mathieu Pillard 12662f4074 Add rating aggregates to the add-on review list API, if requested. 2016-09-20 11:52:46 +02:00
Mathieu Pillard 8ddc1c4449 Fix function declarations with mutable default arguments 2016-09-19 20:13:32 +02:00
Mathieu Pillard 002aab96d2 Filter reviews API list to show only latest reviews by the same user/addon
Also add is_latest and previous_count information to the serialization.
2016-09-16 17:33:42 +02:00
Andrew Williamson a0facd5236 Add API endpoint to process POST email content and add to activity log;
emails received send notification emails;
review emails and notification emails can be replied to.
2016-09-13 18:29:43 +01:00
Mathieu Pillard 63be4b1561 Merge pull request #3480 from diox/api-reviews-flag
Add API to flag a review
2016-09-13 13:41:48 +02:00
Mathieu Pillard 4b9d26321b Add API to flag a review 2016-09-12 18:15:03 +02:00
Mathieu Pillard d93da48ed1 Merge pull request #3479 from diox/update-docs-copyright
Update docs copyright
2016-09-12 13:54:13 +02:00
Mathieu Pillard 6bb41b5034 Update docs copyright 2016-09-12 13:52:38 +02:00
Mathieu Pillard 1bc82a73e4 Allow admins to see deleted reviews in the API if they want to
Also allow developers to edit their replies while I was refactoring.
2016-09-08 16:37:07 +02:00
Mathieu Pillard a0a8515558 Add API to edit and delete an add-on user review 2016-09-06 17:52:40 +02:00
Mathieu Pillard ce0f2d9e57 Merge pull request #3411 from diox/ratings-api-reply
Add API allowing developers and admins to reply to add-on reviews
2016-09-06 14:00:40 +02:00
Stuart Colville ff0c4405b0 Merge pull request #3404 from muffinresearch/fix-docker-ports-and-docs
Add docs for docker for mac + windows and change port config
2016-09-05 18:24:24 +01:00
Stuart Colville f3db2381ef Fix up docs and make the common case the default 2016-09-05 17:23:48 +01:00
Mathieu Pillard dbfdfc9640 Add API allowing developers and admins to reply to add-on reviews 2016-09-05 16:34:23 +02:00
Mathieu Pillard 6fa70318ea Add API to post an add-on review 2016-09-05 13:15:45 +02:00
Stuart Colville ca1fc1a343 Add docs for docker for mac + windows and change port config 2016-09-02 18:28:41 +01:00
Mathieu Pillard feb2058f47 Tweak reviews API docs 2016-08-31 16:35:11 +02:00
Mathieu Pillard 6885ea7e39 Add API to list reviews posted by a user 2016-08-31 15:48:56 +02:00
Andrew Williamson f8617295fc Move review history to version list page; load on demand via API. 2016-08-30 13:20:28 +01:00
Mathieu Pillard f86a1c8bc8 Add API to list add-on reviews for an add-on 2016-08-30 13:49:23 +02:00
Mathieu Pillard 7611ccca35 Fix broken docs table row 2016-08-25 01:11:51 +02:00
Mathieu Pillard 09251c466c Document add-on download sources 2016-08-24 12:56:26 +02:00
Stuart Colville bf5a53fae0 Add docs re: adding python deps 2016-08-18 16:51:31 +01:00
Mathieu Pillard b4ac83efcb Add support for beta versions in the add-on APIs
- Expose current_beta_version in detail/search responses
- Allow filtering add-on versions list to show only betas
2016-08-16 17:44:44 +02:00
Mathieu Pillard 1c10dd308f Mention in API docs that EULA and privacy policy are translated fields 2016-08-12 11:48:02 +02:00
Mathieu Pillard cec4858605 Rename 'policy' endpoint to 'eula_policy' (adjust variables names accordingly) 2016-08-11 18:00:25 +02:00
Mathieu Pillard a8898eb104 Expose add-ons privacy policy and eula in the add-ons API 2016-08-11 17:04:56 +02:00
Mathieu Pillard 0815b7b102 Merge pull request #3244 from diox/api-categories-remove-fennec
Remove categories support for Fennec
2016-08-10 16:03:22 +02:00
Mathieu Pillard 583cc99631 Expose add-on categories in the add-on detail/search API 2016-08-10 14:48:14 +02:00
Mathieu Pillard cfee5fc4d5 Remove categories support for Fennec
"mobile" refers to Fennec (*not* Firefox for Android), which is not
supported anymore.
2016-08-10 12:56:35 +02:00
Mathieu Pillard e605372874 Add add-ons API returning featured add-ons 2016-08-08 19:39:21 +02:00
Mathieu Pillard 080c4504b4 Add filtering by category in the add-ons search API 2016-08-05 16:49:32 +02:00
Andrew Williamson 2b21a7b51f Merge pull request #3178 from eviljeff/i3083-experimental-flag
Add experimental addon flag to submission, edit listing;
2016-07-28 18:11:42 +01:00
Andrew Williamson 6bf19c8cc2 Add experimental addon flag to submission, edit listing;
show different install button; degrade search ranking.
2016-07-28 17:48:39 +01:00
Mathieu Pillard 0439b67620 Update API docs to link translated fields to the relevant documentation 2016-07-28 15:02:43 +02:00
Mathieu Pillard ef816aa0df Add add-on version list/detail API, with new fields (fix #3025) 2016-07-27 13:18:12 +02:00
Mathieu Pillard ecb4784a7f Add/document is_disabled, is_listed, is_source_public to add-ons API
Also remove some workarounds in ES indexation code that are no longer
needed.
2016-07-25 13:03:07 +02:00
Mathieu Pillard 32afce5bad Add number of users and downloads to the add-on search/detail API 2016-07-22 11:57:30 +02:00
Mathieu Pillard 854a2ff681 Replace this/that add-on by the add-on in docs. 2016-07-22 11:57:30 +02:00
Mathieu Pillard 5ba2a02245 Add ratings information to the add-on search/detail API 2016-07-22 11:57:30 +02:00
Mathieu Pillard 882c390f88 Expose author information in add-on search and detail API 2016-07-20 11:58:24 +02:00
Mathieu Pillard f589066c29 Merge pull request #3112 from diox/api-expose-previews
Handle previews in add-on detail/search API (fix #3023)
2016-07-19 13:37:59 +02:00
Mathieu Pillard 8f15354bd8 Handle previews in add-on detail/search API (fix #3023) 2016-07-18 15:11:39 +02:00
ka7 a6b707331f some trivial spelling fixes (#3107)
some trivial spelling fixes
2016-07-16 19:54:30 +02:00
Andy McKay 697f12c51f add in incompatible value 2016-07-13 13:42:06 -07:00
Andy McKay fa2e50bf89 add in some error pages 2016-06-27 07:55:31 -07:00
Christopher Grebs 728fefcc28 Remove django-debug-toolbar specific code, update docs, some more tests. 2016-06-15 17:35:39 +02:00
Mathieu Pillard 04610bb339 Merge pull request #2898 from diox/upgrade-docs-dependencies
Upgrade docs dependencies
2016-06-15 16:27:48 +01:00
Christopher Grebs bf9ed5fdee Remove django-fixture-magic, we're not using it. Let's get rid of it. (#2904) 2016-06-15 17:19:58 +02:00
Mathieu Pillard 7c2831fc1c Upgrade docs-related dependencies 2016-06-15 15:30:44 +01:00
Christopher Grebs a8883dc10a Update requirements/docs.txt, install it explicitly to be self-containing. (#2891) 2016-06-14 17:20:55 +02:00
Andy McKay 892fcf761d fix up table in docs r=me 2016-06-10 11:28:44 -07:00
Mathieu Pillard 7402651741 Merge pull request #2860 from diox/e10s-expose-in-api
Expose Addon e10s status in the API (fix #2790)
2016-06-07 14:26:22 +02:00
Mathieu Pillard 6f40a303ce Expose Addon e10s status in the API (fix #2790) 2016-06-07 12:12:39 +02:00
Andy McKay ff2bc072cf use double quotes 2016-06-06 09:39:45 -07:00
Christopher Grebs 31e104b1ad Set OLYMPIA_SITE_URL to olympia.dev by default. (#2826)
This may fix #2792.
2016-06-02 09:37:03 +02:00
Mathieu Pillard 11bec15765 Format heading field server-side in discovery API, returning HTML directly 2016-05-26 13:54:50 +02:00
Mathieu Pillard 17a6f9ae76 Add add-on slug to discovery API (fix #2751) 2016-05-26 12:54:16 +02:00
Mathieu Pillard fe697dcbaa Reformat docs/conf.py and allow string|null as http:obj <type> 2016-05-23 12:46:50 +02:00
Mathieu Pillard 6d421858fb Add back name to the fields in discovery API, fix docs 2016-05-23 12:46:50 +02:00
Mathieu Pillard 92267fa7e0 Implement new Discovery Pane API 2016-05-20 13:58:22 +02:00
Mathieu Pillard 9d7b689e2f Handle Personas in the search/detail API (fix #2660) 2016-05-18 19:27:12 +02:00
Mathieu Pillard d16483089a Return icons in the API (fix #2639) 2016-05-13 16:10:16 +02:00
Mathieu Pillard de668a3103 Return string-constants in the API responses (fix #2591) 2016-05-12 17:44:31 +02:00
Mathieu Pillard 89ef29d569 Add appversion filtering to the search API and display compatibility info (fix #2552) 2016-05-11 11:24:23 +02:00
Christopher Grebs fe22b5534d Fix signing docs for optional id usage.
Refs #2535
2016-05-06 12:03:02 +02:00