GET API/Jokes/Top?top={top}
Gets the top most liked jokes.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| top |
Number of top jokes to return. |
integer |
Default value is 100 |
Body Parameters
None.
Response Information
Resource Description
Returns a list of the top most liked jokes.
Collection of JokeLikesModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Likes |
The number of likes a joke has. |
integer |
None. |
| JokeId |
The ID of the joke. |
integer |
Required |
| IsVerified |
True if the joke has been verified by an admin. |
boolean |
None. |
| Question |
The question of the joke (first part). |
string |
Required Max length: 425 |
| Answer |
The answer to the question of the joke (second part). |
string |
Required Max length: 425 |
Response Formats
application/json, text/json
Sample:
[
{
"Likes": 1,
"JokeId": 2,
"IsVerified": true,
"Question": "sample string 3",
"Answer": "sample string 4"
},
{
"Likes": 1,
"JokeId": 2,
"IsVerified": true,
"Question": "sample string 3",
"Answer": "sample string 4"
}
]
text/xml
Sample:
<ArrayOfJokeLikesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VeryPunny.Models">
<JokeLikesModel>
<Answer>sample string 4</Answer>
<Question>sample string 3</Question>
<IsVerified>true</IsVerified>
<JokeId>2</JokeId>
<Likes>1</Likes>
</JokeLikesModel>
<JokeLikesModel>
<Answer>sample string 4</Answer>
<Question>sample string 3</Question>
<IsVerified>true</IsVerified>
<JokeId>2</JokeId>
<Likes>1</Likes>
</JokeLikesModel>
</ArrayOfJokeLikesModel>