Get user by user name
GET/user/:username
Request
Path Parameters
username stringrequired
The name that needs to be fetched. Use user1 for testing.
Responses
- 200
- 400
- 404
successful operation
- application/xml
- application/json
- Schema
- Example (from schema)
Schema
id int64
username string
firstName string
lastName string
email string
password string
phone string
userStatus int32
User Status
<root>
<id>10</id>
<username>theUser</username>
<firstName>John</firstName>
<lastName>James</lastName>
<email>john@email.com</email>
<password>12345</password>
<phone>12345</phone>
<userStatus>1</userStatus>
</root>
- Schema
- Example (from schema)
Schema
id int64
username string
firstName string
lastName string
email string
password string
phone string
userStatus int32
User Status
{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@email.com",
"password": 12345,
"phone": 12345,
"userStatus": 1
}
Invalid username supplied
User not found
Loading...