An open API service indexing awesome lists of open source software.

https://github.com/lukeuke/istaapi

Api made to search words which ends with words provided in url query from polish dictionary
https://github.com/lukeuke/istaapi

api dictionary nodejs

Last synced: about 2 months ago
JSON representation

Api made to search words which ends with words provided in url query from polish dictionary

Awesome Lists containing this project

README

          

# IstaApi
Api made to search words which ends with provided ending in polish dictionary

## Installation

```console
git clone https://github.com/Lukeuke/IstaApi.git
```

```console
npm install
```

1. Rename file called '.env-example' to '.env'
1. In 'PORT=your_port_number' goes your port number
1. In 'HOST=ip_address' goes your host for example: localhost
1. To start the api type
```console
node app.js
```

## Endpoints

### Get
- /api?word=your_word

`Searches all the dictionary for specific ending of word`

### Post
- /dictionary

`Searches the definition of word provided in json from sjp.pl`

In request body you must provide json:

```json
{
"word" : "your_word"
}
```

Response:
```json
{
"description": "example_descritpion"
}
```

- /urban

`Searches definition, example and contributor of provided word from urandictionary.com`
`In request body you must provide:`

```json
{
"word" : "wtf"
}
```

Response:
```json
{
"description": "description for word",
"example": "example for word",
"contributor": "contributor for word"
}
```

## License
MIT