跳到主要内容

Get user by user name.

GET 

/user/:username

Get user detail based on username.

Request

Path Parameters

NameTypeRequiredDescription
usernamestringrequiredThe name that needs to be fetched. Use user1 for testing

Body

No request body

Responses

application/jsonapplication/xml
idinteger(int64)
Example: 10
integer (int64)
usernamestring
Example: "theUser"
string
firstNamestring
Example: "John"
string
lastNamestring
Example: "James"
string
emailstring
Example: "john@email.com"
string
passwordstring
Example: "12345"
string
phonestring
Example: "12345"
string
userStatusinteger(int32)
User Status
Example: 1
integer (int32)
User Status
idinteger(int64)
Example: 10
integer (int64)
usernamestring
Example: "theUser"
string
firstNamestring
Example: "John"
string
lastNamestring
Example: "James"
string
emailstring
Example: "john@email.com"
string
passwordstring
Example: "12345"
string
phonestring
Example: "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