docbrown/app/controllers/api/v0
Jeremy Friesen acd5b175ed
Ensuring POST api/v0/articles authorizes by policy (#16685)
As part of the [Authorization System Use Case
1:1](https://github.com/orgs/forem/projects/46) project, we are driving
towards the feature of: "Only admin's may post articles in this Forem."

This commit ensures that the API's "create an article" end-point
delivers on that feature.

Along the way, I've added reading notes and comments, to help us further
flex in the future (namely move all authorization checks into a policy
object).

Closes forem/forem#16488
2022-02-28 08:50:33 -05:00
..
admin Admin API use case 1: endpoint to create users (#16520) 2022-02-15 09:30:00 +07:00
analytics_controller.rb app/controllers/api i18n (#16002) 2022-01-11 10:05:54 +07:00
api_controller.rb Ensuring POST api/v0/articles authorizes by policy (#16685) 2022-02-28 08:50:33 -05:00
articles_controller.rb Ensuring POST api/v0/articles authorizes by policy (#16685) 2022-02-28 08:50:33 -05:00
comments_controller.rb Profile generalization cleanup phase 2 (#14555) 2021-08-27 09:17:26 +07:00
feature_flags_controller.rb Easier feature flag handling for Cypress (#16379) 2022-02-03 10:42:13 -05:00
followers_controller.rb 15 minute fix: Add default argument to JsonApiSortParam (#13369) 2021-04-14 10:32:07 +07:00
follows_controller.rb app/controllers/api i18n (#16002) 2022-01-11 10:05:54 +07:00
health_checks_controller.rb app/controllers/api i18n (#16002) 2022-01-11 10:05:54 +07:00
instances_controller.rb Remove counts from instance API (#16479) 2022-02-09 11:07:44 -05:00
listings_controller.rb More listings refactoring (#16343) 2022-02-23 13:44:30 +07:00
organizations_controller.rb Profile generalization: cleanup (#12947) 2021-08-20 16:36:02 +02:00
podcast_episodes_controller.rb Rubocop: move dot in multi-line calls to leading position (#9262) 2020-07-16 15:51:11 +02:00
profile_images_controller.rb [deploy] Introduce /api/profile_images/:username endpoint (#10547) 2020-10-14 14:24:25 -05:00
readinglist_controller.rb Remove Doorkeeper from API (#15750) 2021-12-16 09:57:26 -06:00
tags_controller.rb Add ability to bulk search tags by name or id (#16671) 2022-02-24 12:34:50 -05:00
users_controller.rb Remove Doorkeeper from API (#15750) 2021-12-16 09:57:26 -06:00
videos_controller.rb Return video_source_url in API V0 Videos index (#11040) 2020-11-09 06:27:28 +01:00