Simple REST service to POST a string and receive the guessed language as response
- git clone git://github.com/saz/lang-which.git
- cd lang-which
- mkvirtualenv lang-which
- pip install -r requirements.txt
- Starting lang-which
python lang-which.py
- POSTing some data
curl -d text=Hello+World%3F -H "Accept: application/json" http://localhost:8080
saz@serenity:~$ curl -d text=Hello+World%3F -H "Accept: application/json" http://localhost:8080
{"language": "en"}
saz@serenity:~$