Skip to content

user is not defined #2

@anilprasad

Description

@anilprasad

While I am trying to create a new user using Postman ['http://192.168.1.106:3000/v1/users' using POST method, data -> {"unique_key" : "John", "email" : "test@test.com", "phone" : "7887566", "password" : "qwer1234"} as application/json], i am unable to get the user posted onto the db (I added additional line as console.log (user)).

If I use following curl command
curl -X POST -H "Content-Type: application/json" -d '{"unique_key":"john","email":"test@test.com","phone":"7777887566","password":"qwer1234"}' http://192.168.1.106:3000/v1/users

I get "A valid email or phone number was not entered" (after removing the console.log(user))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions