Programming Jokes API with Filters developed by Sitern
GET /jokes
{
"text": "Dev1 saw a strange JavaScript function & asked, \"What is this?\".
Dev2 responded, \"I don't know. I would've called you, but I was in a bind\"",
"author": "elijahmanor",
"created": "09/09/2013",
"tags": ["javascript"],
"rating": 3
}
GET /jokes/greaterThanRating/{rating[e.g., 1, 2, 3]}
{
"text": "Dev1 saw a strange JavaScript function & asked, \"What is this?\".
Dev2 responded, \"I don't know. I would've called you, but I was in a bind\"",
"author": "elijahmanor",
"created": "09/09/2013",
"tags": ["javascript"],
"rating": 3
}
GET /jokes/filterByName/{name[e.g., elijahmanor]}
{
"text": "Dev1 saw a strange JavaScript function & asked, \"What is this?\".
Dev2 responded, \"I don't know. I would've called you, but I was in a bind\"",
"author": "elijahmanor",
"created": "09/09/2013",
"tags": ["javascript"],
"rating": 3
}
GET /jokes/getByTag/{tag[e.g., javascript, css]}
{
"text": "Dev1 saw a strange JavaScript function & asked, \"What is this?\".
Dev2 responded, \"I don't know. I would've called you, but I was in a bind\"",
"author": "elijahmanor",
"created": "09/09/2013",
"tags": ["javascript"],
"rating": 3
}
PUT /jokes/addJoke
{
"text": "Dev1 saw a strange JavaScript function & asked, \"What is this?\".
Dev2 responded, \"I don't know. I would've called you, but I was in a bind\"",
"author": "elijahmanor",
"created": "09/09/2013",
"tags": ["javascript"],
"rating": 3
}
{
"result":"success",
"jokeId":{id}
}