Last active
August 29, 2015 14:09
-
-
Save selenamarie/fec696bf042164ea123e to your computer and use it in GitHub Desktop.
testing the dataservice_app.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# start dataservice_app.py | |
socorro/dataservice/dataservice_app.py | |
# insert these into postgresql: | |
insert into bugs values (1, 'done', 'good', 'stuff'); | |
insert into bug_associations values (1, 'a signature'); | |
# test POST | |
(socorro-virtualenv)[vagrant@localhost ~]$ curl --data "bug_ids=1" http://localhost:8883/bugs/ | |
{"hits": [{"id": 1, "signature": "a signature"}], "total": 1}(socorro-virtualenv)[vagrant@localhost ~]$ |
peterbe
commented
Nov 17, 2014
The error was because it has to be
insert into bugs values (1, 'done', 'good', 'stuff');
insert into bug_associations values (1, 'a signature');
Thanks! Sorry about that, fixed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment