GET UserStats/{id}
Get user stats by user id. User Authorization Required.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The user id. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
The user's stats.
ResponseInstanceOfUserStatsName | Description | Type | Additional information |
---|---|---|---|
Data | UserStats |
None. |
|
ResultType | ResultType |
None. |
|
Messages | Collection of string |
None. |
|
Links | Links |
None. |
|
ApiBaseUrl | string |
None. |
|
responseObjectType | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "userId": 1, "questions": 2, "correct": 3, "percentCorrect": 4.0, "userName": "sample string 5", "apiUrl": { "href": "/userstats/sample string 7" }, "resourceObjectType": "userStats" }, "resultType": { "code": 0, "message": "Success" }, "messages": [ "sample string 1", "sample string 2" ], "links": {}, "apiBaseUrl": "sample string 1", "responseObjectType": "responseInstance<userStats>" }
application/xml, text/xml
Sample:
<ResponseInstance xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <ApiBaseUrl>sample string 1</ApiBaseUrl> <Links> <First i:nil="true" /> <Last i:nil="true" /> <Next i:nil="true" /> <Previous i:nil="true" /> <Self i:nil="true" /> </Links> <Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Messages> <ResultType> <Code>Success</Code> <Message>Success</Message> </ResultType> <responseObjectType>responseInstance<userStats></responseObjectType> <Data> <ApiUrl> <href>/userstats/sample string 7</href> </ApiUrl> <ResourceObjectType>userStats</ResourceObjectType> <Correct>3</Correct> <PercentCorrect>4</PercentCorrect> <Questions>2</Questions> <UserId>1</UserId> <UserName>sample string 5</UserName> </Data> </ResponseInstance>