Permalink
Browse files

Updated the PUT example so that it can be properly parsed by the JSON…

… converter
  • Loading branch information...
1 parent 00465cd commit c03aac6c1a0ebeb042165a4daeefa7d2389646b6 @wmwragg committed Apr 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
2 README.md
@@ -63,7 +63,7 @@ You can then access the database via the RESTful camomile interface e.g. via cur
Queries (SQL select statements) are done through GET while updates and deletes are done through POST and inserts are done through PUT:
- curl -X PUT -H "Content-Type: application/json" http://localhost:8080/test/sql -d"{\"SQL\":\"insert into info \(name\) values \('info text'\)\"}"
+ curl -X PUT -H "Content-Type: application/json" http://localhost:8080/test/sql -d"{\"SQL\":\"insert into info (name) values ('info text')\"}"
The default style for the return JSON will be compact, if you want pretty print JSON returned, use the query parameter "json=pretty" e.g.

0 comments on commit c03aac6

Please sign in to comment.