Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is-available route never responds with { "isAvailable": true } #21

Open
alina-vakulenko opened this issue Apr 27, 2023 · 0 comments
Open

Comments

@alina-vakulenko
Copy link

I am trying to verify if an email is already registered in the API before creating new user.
The response is always { "isAvailable": false } after sending POST request to https://api.escuelajs.co/api/v1/users/is-available
with object like
{
"email": "newtestuser@test.com"
}.
No matter what email address was typed in.

Steps to reproduce the behavior:

  1. Go to "https://api.escuelajs.co/docs#/users/UsersController_isAvailable".
  2. Click on 'Try it out'.
  3. Type in email address that should be available.
  4. See response { "isAvailable": false }

Expected response: { "isAvailable": true} for email addresses that are not present among users returned by "/users" URL.

  • OS: Windows
  • Browser: Chrome 112.0.5615.138
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant