concordia-server/tests/testCurl.sh

8 lines
321 B
Bash
Raw Normal View History

2015-06-09 13:01:42 +02:00
#!/bin/sh
2015-08-07 13:21:53 +02:00
#curl -H "Content-Type: application/json" -X POST -d '{"operation":"addSentence", "sourceSentence":"Marysia ma rysia", "targetSentence":"Mary has a bobcat", "tmId":1}' http://localhost
2015-08-07 13:21:53 +02:00
curl -H "Content-Type: application/json" -X POST -d '{"operation":"simpleSearch", "pattern":"ma rysia"}' http://localhost
2015-06-09 13:01:42 +02:00