Commit Graph

12 Commits (a791bac153cf979adeaf3024d65917dbd699b5d9)

Author SHA1 Message Date
Eugen Rochko 1f6ed4f86a
Add more granular OAuth scopes ()
* Add more granular OAuth scopes

* Add human-readable descriptions of the new scopes

* Ensure new scopes look good on the app UI

* Add tests

* Group scopes in screen and color-code dangerous ones

* Fix wrong extra scope
Eugen Rochko 33513753b9
Fix unpermitted parameters warning when generating pagination URLs ()
Akihiko Odaki a6ea7e282f Merge queries in Api::V1::FavouritesController ()
Eugen Rochko 8b2cad5637 Refactor JSON templates to be generated with ActiveModelSerializers instead of Rabl ()
Matt Jankowski 73540ffe6b Clean up for api/base controller ()
* Move ApiController to Api/BaseController

* API controllers inherit from Api::BaseController

* Add coverage for various error cases in api/base controller
Naoki Kosaka e014bf8ed0 Fix limit_param in favourites_controller.rb ()
Matt Jankowski 75cad1d9d6 Improve spec coverage and clean up api/v1/favourites controller ()
Eugen b89f007862 Make public timelines API not require user context/app credentials ()
* Make /api/v1/timelines/public and /api/v1/timelines/tag/:id public
Fix  - respect query params when generating pagination links in API

* Apply pagination fix to more APIs
Eugen Rochko de22c202f5 Add counter caches for a large performance increase on API requests
Eugen Rochko 1f5792c834 API now respects ?limit param as long as it's within 2x default limit
Eugen Rochko 7d53ee73f3 Fix - Add "favourites" column
Eugen Rochko a302e56f9a Add API for retrieving favourites