mastodon/app/serializers/rest/admin
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
2022-06-01 17:31:36 +02:00
..
account_serializer.rb Remove IP tracking columns from users table (#16409) 2022-01-16 13:23:50 +01:00
cohort_serializer.rb Change percent to rate in retention metrics API (#16910) 2022-01-23 16:01:25 +01:00
dimension_serializer.rb
domain_block_serializer.rb Add /api/v1/admin/domain_blocks (#18247) 2022-06-01 17:31:36 +02:00
existing_domain_block_error_serializer.rb Add /api/v1/admin/domain_blocks (#18247) 2022-06-01 17:31:36 +02:00
ip_serializer.rb Remove IP tracking columns from users table (#16409) 2022-01-16 13:23:50 +01:00
measure_serializer.rb Change design of federation pages in admin UI (#17704) 2022-03-09 08:52:32 +01:00
report_serializer.rb Add notifications for statuses deleted by moderators (#17204) 2022-01-17 09:41:33 +01:00
tag_serializer.rb