Skip to content

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

@alina-vakulenko

Description

@alina-vakulenko

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions