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
..
2022-03-06 22:51:40 +01:00
2020-01-23 22:00:13 +01:00
2022-01-28 00:46:42 +01:00
2022-01-28 00:46:42 +01:00
2022-03-06 22:51:40 +01:00
2022-02-25 00:34:14 +01:00
2019-03-03 22:18:23 +01:00
2022-03-06 22:51:40 +01:00
2018-10-04 12:36:53 +02:00