https://github.com/niweera/wordhunter-api
A web application to find words for the letters you have most probably when you are playing Scrabble...
https://github.com/niweera/wordhunter-api
api google-app-engine google-cloud-platform microservices-architecture nodejs reactjs
Last synced: 2 months ago
JSON representation
A web application to find words for the letters you have most probably when you are playing Scrabble...
- Host: GitHub
- URL: https://github.com/niweera/wordhunter-api
- Owner: Niweera
- License: mit
- Created: 2019-07-15T09:19:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T02:49:50.000Z (about 6 years ago)
- Last Synced: 2025-05-13T21:19:21.140Z (about 1 year ago)
- Topics: api, google-app-engine, google-cloud-platform, microservices-architecture, nodejs, reactjs
- Language: JavaScript
- Homepage: https://wh.niweera.gq
- Size: 367 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://opensource.org/licenses/MIT)
[](http://hits.dwyl.io/Niweera/wordhunter-api)
[](https://snyk.io//test/github/Niweera/wordhunter-api?targetFile=package.json)


[](https://github.com/dwyl/goodparts "JavaScript The Good Parts")
[](https://travis-ci.com/Niweera/wordhunter-api)
# WordHunter-API v1.0
## WordHunter-API is live on https://wh.niweera.gq
> WordHunter lets you to find the words for the letters you have when you are playing Scrabble.
The following is the basic architecture of the WordHunter application. (The web application will use the WordHunter-API to get the results according to the letters that the user has given.)

### Example use case
User wants to find words which can be created from `a, s, d`
The WordHunter service will provide the following results.
1. sad - Feeling or showing sorrow; unhappy.
2. ads - An advertisement.
(The initial version would only give the words which contains all the letters. Later versions would provide all the letter combinations.)
## Endpoints
Enter any combination of letters without the need of seperating them by a comma or a space.
Eg. `https://wh.niweera.gq/asd`, will return an array of all the possible words and their definitions that can be created using all the given letters.
```json
[
{
"word": "ads",
"definition": "An advertisement."
},
{
"word": "sad",
"definition": "Feeling or showing sorrow; unhappy."
}
]
```
### Paths
| Location | Endpoint |
| :-------- | :----------------------- |
| Root path | `https://wh.niweera.gq/` |
### HTTP request and query methods
| Method | Endpoint | Query | Description | Examples |
| :----- | :------- | :--------------------- | :--------------------------------------------------------- | :--------------------------------- |
| `GET` | `/` | `{letter combination}` | Give JSON response of all possible words with definitions. | [`asd`](https://wh.niweera.gq/asd) |
## Meta
Nipuna Weerasekara – [@Niweera](https://twitter.com/Niweera) – w.nipuna@gmail.com
Distributed under the MIT license. See `LICENSE` for more information.
[https://github.com/Niweera/wordhunter-api](https://github.com/Niweera/wordhunter-api)
The front-end for this application is in [wordhunter](https://github.com/Niweera/wordhunter) repo.
This repo is a part of `WordHunter` project.
`WordHunter` uses [GoogleDict](https://dict.niweera.gq) Dictionary API service. Find its repo [here](https://github.com/Niweera/googledict).
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request
[npm-image]: https://img.shields.io/npm/v/datadog-metrics.svg?style=flat-square
[npm-url]: https://npmjs.org/package/datadog-metrics
[npm-downloads]: https://img.shields.io/npm/dm/datadog-metrics.svg?style=flat-square
[travis-image]: https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/dbader/node-datadog-metrics
[wiki]: https://github.com/yourname/yourproject/wiki