Basic usage
GET /api/:text
Example
GET /api/one two two three three three
Response
{ "data": { "two": 2, "three": 2, "one": 1 } }
Additional parameters
It's possible to sort the JSON response with the additional parameters sort and ascending.
Reference
Option | Values |
---|---|
sort | word or number |
ascending | true or false |
The default sort method is set to number and descending.
Example
GET /api/one two two three three three?sort=name&ascending=false