Change Admin API inconsistencies
While looking through Admin API docs I found some inconsistencies that I think should be fixed before admin-fe depends too much on them.
- Inconsistent nickname passinng, for example
/api/pleroma/admin/users/:nickname/toggle_activation
expects the nickname to be in the url, while/api/pleroma/admin/users/tag
expects an array undernicknames
query paramemter, but/api/pleroma/admin/password_reset
expects one nickname undernickname
query paramemter. I suggest refactoring every endpoint to expect a list or a single nickname undernickname
query parameter - Some endpoints are not categorized,
/api/pleroma/admin/invite_token
,/api/pleroma/admin/password_reset
should be moved under/api/pleroma/admin/user/invite
and/api/pleroma/admin/password_reset
respectievly
cc @lanodan