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

Add property mobile to User #4

Open
OmalPerera opened this issue Mar 1, 2018 · 0 comments
Open

Add property mobile to User #4

OmalPerera opened this issue Mar 1, 2018 · 0 comments

Comments

@OmalPerera
Copy link
Member

Add the optional beans property ‘mobile’ to the User. The property named ‘mobile’ should be able to pass into POST /users, in addition to the email and password properties.

Request schema:

{
    "email": "{email}",
        "mobile": "+94778976377"
}

Response schema:

{
    "self": "http://localhost:8090/api/users/{user_id}",
    "email": "{email}",
    "mobile": "+94778976377"
}

Validate that the mobile no. being passed in the POST /users is a valid one. Make sure the test cases, in which mobile validity is being checked do pass.

400 Bad Request: If the mobile no. is invalid (incorrectly formatted)

Note

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