Get user by user name.
GET/user/:username
Get user detail based on username.
Request
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
username | string | required | The name that needs to be fetched. Use user1 for testing |
Body
No request body
Responses
application/jsonapplication/xml
idinteger(int64)Example: 10
integer (int64)
usernamestringExample: "theUser"
string
firstNamestringExample: "John"
string
lastNamestringExample: "James"
string
emailstringExample: "john@email.com"
string
passwordstringExample: "12345"
string
phonestringExample: "12345"
string
userStatusinteger(int32)User Status
Example: 1
integer (int32)
User Status
idinteger(int64)Example: 10
integer (int64)
usernamestringExample: "theUser"
string
firstNamestringExample: "John"
string
lastNamestringExample: "James"
string
emailstringExample: "john@email.com"
string
passwordstringExample: "12345"
string
phonestringExample: "12345"
string
userStatusinteger(int32)User Status
Example: 1
integer (int32)
User Status
Response Info
Status Code:200
Description:successful operation
Content Types:
application/jsonapplication/xml