fake-api-backend icon indicating copy to clipboard operation
fake-api-backend copied to clipboard

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

Open alina-vakulenko opened this issue 1 year ago • 0 comments

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": "[email protected]" }. 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

alina-vakulenko avatar Apr 27 '23 09:04 alina-vakulenko