...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "data":{ "available":false, "takenBy":"podb" }, "statusFact":{ "success":true } } |
Create User Name
Current Implementation
This API method can be used to create user name from first name first letter and last name. If created user name already exists in users table then add number to user name.
eg. psmith, psmith1
Parameters
Base URL: /createUserName
Parameters:
Name | Type | Mandatory | Description |
---|---|---|---|
firstName | String | Yes | First Name of user. |
lastName | String | Yes | Last Name of user. |
API Sample
url 'http://localhost:8080/PresentationServices/createUserName?firstName=paul&lastName=paul
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{"data":{"lastName":"Poda","userName":"vPoda1","firstName":"vidant"},"statusFact":{"success":true}} |