Get user by user name.
Get user detail based on username.
GET
/user/{username}Path parameters
usernamestringrequiredThe name that needs to be fetched. Use user1 for testing
Responses
200successful operation
idinteger<int64>usernamestringfirstNamestringlastNamestringemailstringpasswordstringphonestringuserStatusinteger<int32>User Status
400Invalid username supplied
404User not found
defaultUnexpected error
Request
curl -X GET "/api/v3/user/string"const response = await fetch("/api/v3/user/string", {
method: "GET"
});import requests
response = requests.get(
"/api/v3/user/string",
)Response
{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@email.com",
"password": "12345",
"phone": "12345",
"userStatus": 1
}Invalid username supplied
User not found
Unexpected error