feat: add propose domain endpoint

This commit is contained in:
Maël Gangloff
2025-09-13 13:09:28 +02:00
parent 1b1b82189e
commit c93037663f
9 changed files with 163 additions and 36 deletions

View File

@@ -4,8 +4,10 @@ namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Get;
use ApiPlatform\Metadata\Post;
use App\Config\EventAction;
use App\Controller\DomainRefreshController;
use App\Controller\ProposeDomainController;
use App\Repository\DomainRepository;
use App\Service\RDAPService;
use App\State\AutoRegisterDomainProvider;
@@ -56,6 +58,14 @@ use Symfony\Component\Serializer\Attribute\SerializedName;
],
read: false
),
new Post(
uriTemplate: '/propose-domain/{ldhName}',
controller: ProposeDomainController::class,
shortName: 'Propose Domain',
input: false,
read: false,
write: false,
),
],
provider: AutoRegisterDomainProvider::class
)]