docbrown/app/controllers/concerns/api
Fernando Valverde c6c39813a1
New suspend user API endpoint (#18043)
* New suspend user API endpoint

* Restrict admin access only to suspend action

* Add suspended? check on new endpoint spec

* Replace POST with PUT action

* Replace redundant response payload with empty 200 response

* Rely on user_policy instead of before_action method

* Use alias with matching method name instead of unpublish

* Use already existing toggle_suspension_status? method in policy

* Remove manual creation of note

* Update suspend success spec
2022-07-15 09:07:57 -06:00
..
admin API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
analytics_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
articles_controller.rb Unpublish post service class + V1 API endpoint (#18031) 2022-07-08 09:08:55 -06:00
comments_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
feature_flags_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
followers_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
follows_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
health_checks_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
instances_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
listings_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
organizations_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
podcast_episodes_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
profile_images_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
readinglist_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
tags_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
users_controller.rb New suspend user API endpoint (#18043) 2022-07-15 09:07:57 -06:00
videos_controller.rb API V1 transition (#17835) 2022-06-23 14:26:00 -06:00