docbrown/app
Duke Greene dd7e34ac53
define api v1 routes for organizations (#19681)
* define api routes and create controllers, sketch out index and create actions

* add api v1 organizations CRUD spec and docs spec, need to run swagger

* swagger dry run on admin organizations routes, typo fix in api.rb

* flesh out specs and sketch out admin actions

* move actions out of concerns/include pattern and into v1 inline

* remove private constant call

* add v1 accept header to doc spec, fix syntax in a before block

* update controllers to address failing specs

* simplify controller and clarify route config

* flesh out tests for errors

* fix long line

* add missing commas

* return username show route to v0 concern controller

* create separate show route and action name, remove nesting from create/update params requirement

* clean up syntax in controller params and update show path in specs; move routes

* fix up syntax in params permit

* create organization in index spec

* one more syntax tweak for org params

* refactoring to one show route that handles username or id

* tweak spec syntax to expect the right array

* tweak controller and specs, simplify routing to show

* remove create route, action, and specs from this branch

* add clarifying comment in show controller action

* add explicit not found return to show route

* fix controller formatting causing 404 errors

* remove comment, update specs

* remove commment and fix id show response and specs

* fix show route and request spec for username param

* update unauthorized user specs to use put for now instead of post, regenerate swagger docs

* adjust update 422 spec to break org validity

* fix admin update spec, rerun swagger

* reorganiza controller actions, update specs, ensure authorized update and delete

* improve spec, handle finding one org more gracefully, delete via worker

* copy routes into api namespace instead of moving them from general namespace

* update param in v0 show route to fit more general naming

* regenerate v1 swagger docs

* use profile image url getter in update controller response

* update swagger docs and remove unneeded comment from org' model

* configure organizations destroy action for super admins only (for now)
2023-07-19 09:51:05 -04:00
..
assets Rename DisplayAdEventsController to BillboardEventsController (#19771) 2023-07-19 08:51:22 -04:00
controllers define api v1 routes for organizations (#19681) 2023-07-19 09:51:05 -04:00
decorators Subscribe to Comment Functionality (#19555) 2023-07-10 17:11:46 +02:00
errors Favoring re-use of authorization error (#16992) 2022-03-24 08:16:28 -04:00
forms Refactor CreatorSettingsForm & spec (#19011) 2023-01-27 08:39:07 -05:00
helpers Allow admins to delete an organization (#19699) 2023-07-17 12:09:24 +02:00
javascript Rename DisplayAdEventsController to BillboardEventsController (#19771) 2023-07-19 08:51:22 -04:00
lib Remove manual user follow suggestions (#19457) 2023-05-16 15:01:03 +02:00
liquid_tags Fix Windows tweet schrinking phenomenon (#19686) 2023-07-06 17:25:04 -04:00
mailers "Reply to" and "From" Email addresses for SMTP Configurations (#16499) 2022-02-16 16:14:54 +02:00
models Admin Area: Bulk assign user roles (#19733) 2023-07-18 18:41:54 +05:30
policies define api v1 routes for organizations (#19681) 2023-07-19 09:51:05 -04:00
queries Rename DisplayAdHelper to BillboardHelper (#19750) 2023-07-14 14:48:45 -04:00
refinements
sanitizers Don't sanitize anchor elements with no href (#16667) 2022-02-22 11:27:38 -06:00
serializers Remove deprecated Organization's columns (#19396) 2023-06-26 10:36:33 -04:00
services Language detection with CLD3 (#19756) 2023-07-17 08:57:20 -04:00
uploaders small non-views ruby i18n (#16004) 2022-01-11 10:05:18 +07:00
validators Skips newline when validating character count (#19646) 2023-07-07 14:35:29 -04:00
view_objects Patching ERB rendering of the data-info JSON (#16067) 2022-01-14 08:30:49 -05:00
views Admin Area: Bulk assign user roles (#19733) 2023-07-18 18:41:54 +05:30
workers Allow admins to delete an organization (#19699) 2023-07-17 12:09:24 +02:00