docbrown/spec/requests/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_spec.rb Remove pro role + expose analytics to all users via dashboard (#13156) 2021-03-30 15:02:18 -07:00
articles_spec.rb Ensuring POST api/v0/articles authorizes by policy (#16685) 2022-02-28 08:50:33 -05:00
comments_spec.rb app/models i18n (#16124) 2022-02-03 13:41:42 -05:00
feature_flags_spec.rb Easier feature flag handling for Cypress (#16379) 2022-02-03 10:42:13 -05:00
followers_spec.rb Refactoring to add helper method (#16064) 2022-01-12 11:21:44 -05:00
follows_spec.rb API: Add route for fetching a user's followed tags (#9108) 2020-09-18 16:28:42 -05:00
health_checks_spec.rb Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
instances_spec.rb Remove counts from instance API (#16479) 2022-02-09 11:07:44 -05:00
listings_spec.rb More ListingsToolkit refactoring (#16221) 2022-01-27 09:47:41 +07:00
organizations_spec.rb Extracting listing routes (#16338) 2022-01-28 10:49:52 -05:00
podcasts_episodes_spec.rb Upgrade to Rails 6.0 (#7658) 2020-06-04 11:54:25 +02:00
profile_images_spec.rb Refactoring to add helper method (#16064) 2022-01-12 11:21:44 -05:00
readinglist_spec.rb Remove Doorkeeper from API (#15750) 2021-12-16 09:57:26 -06:00
tags_spec.rb Add ability to bulk search tags by name or id (#16671) 2022-02-24 12:34:50 -05:00
users_spec.rb Refactoring to add helper method (#16064) 2022-01-12 11:21:44 -05:00
videos_spec.rb Return video_source_url in API V0 Videos index (#11040) 2020-11-09 06:27:28 +01:00