GET /search?q=home&type=place&sort=newest-first
Returns array of search result objects:
[
{
"id": 1,
"value": "Diory name 1"
},
{
"id": 2,
"value": "Diory name 2"
}
]
Search results are sorted automatically by the following criteria:
Returns only diories that contain given string in the name.
Accepted values: Query string
?q=first
Returns only diories of given type.
Accepted values: Any diory type: place, check-in etc.
?type=place
Returns only date diories that contain given string in the name.
Accepted values: Query string
?date=2015
Returns diories in given order.
Accepted values: “a-first”, “z-first”, “newest-first”, “oldest-first”
?sort=a-first