rest api for phrasebook application