Skip to content

Commit

Permalink
feat: Improve API registration endpoint response time
Browse files Browse the repository at this point in the history
The API registration endpoint now includes a simulated delay of 1 to 3 seconds to mimic real-world scenarios with slow servers. This change enhances the user experience by providing a more realistic simulation of server response times.
  • Loading branch information
robertotcestari committed Jul 9, 2024
1 parent 66c0925 commit 175bb55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/register-user/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Este é o único endpoint da API e irá validar os dados de cadastro bem como si

Caso os dados estejam corretos, a API retornará um objeto JSON com a mensagem `User registered.` bem como os dados do usuário cadastrado em um objeto `user`. Caso contrário, a API retornará erro `422`.

Importante notar que a API demora de 1 a 3 segundos para responder para simular uma situação real de uma requisição a um servidor lento.

### Atributos obrigatórios

<Properties>
Expand Down

0 comments on commit 175bb55

Please sign in to comment.