feat(scanner): refactor ticket scanning endpoint to accept UUID in request body and add validation
This commit is contained in:
@@ -113,6 +113,7 @@ function bodyFor(string $method, string $uri): ?array
|
||||
'POST api/v1/scanner/password/reset-attempts' => ['email' => '{{scanner_email}}'],
|
||||
'POST api/v1/scanner/password/reset-attempts/validate' => ['email' => '{{scanner_email}}', 'codigo' => '{{reset_code}}'],
|
||||
'POST api/v1/scanner/password/reset' => ['email' => '{{scanner_email}}', 'codigo' => '{{reset_code}}', 'password' => '{{scanner_password}}', 'password_confirmation' => '{{scanner_password}}'],
|
||||
'POST api/v1/scanner/tickets/scan' => ['data' => '{{ticket_uuid}}'],
|
||||
];
|
||||
|
||||
if (isset($exact[$key])) {
|
||||
|
||||
Reference in New Issue
Block a user