You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app/controllers/api
Claire 28329ba62f
Add /api/v1/admin/domain_blocks (#18247)
* Add /api/v1/admin/domain_blocks

Fixes #18140

- `GET /api/v1/admin/domain_blocks` lists domain blocks
- `GET /api/v1/admin/domain_blocks/:id` shows one by ID
- `DELETE /api/v1/admin/domain_blocks/:id` deletes a given domain block
- `POST /api/v1/admin/domain_blocks` to create a new domain block:
  if it conflicts with an existing one, returns an error with
  an attribute `existing_domain_block` with the rendered domain block

* Simplify conflict handling as suggested in review
3 years ago
..
v1 Add /api/v1/admin/domain_blocks (#18247) 3 years ago
v2 Fix error resposes for `from` search prefix (#17963) 3 years ago
web Refactor formatter (#17828) 3 years ago
base_controller.rb Fix suspended users being able to access APIs that don't require a user (#18524) 3 years ago
oembed_controller.rb Fix OEmbed leaking information about existence of non-public statuses (#12930) 5 years ago