Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 990 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 990 Bytes

Dictionary

It is used as the main storage for words and their definitions. Elasticsearch - used as storage, it allows store and search word by differences masks.

Rest Api

Path Method Scheme Grant
/api/dictionary/languages GET ANY ALL
/api/dictionary/words/{LANGUAGE}?mask={MASK} GET ANY ALL

Response formats

  • json
  • xml

Commands

Used to fill a dictionary with the help of a third party API providers:

php bin/console dictionary:populate {LANGUAGE-CODE} --{FILE-PATH}

Used to fill a dictionary from file:

php bin/console dictionary:upload {FILE-PATH} 

Collections with words for populate can be found: cd /data

Author

Dykyi Roman, e-mail: mr.dukuy@gmail.com