Changes

Jump to navigation Jump to search
159 bytes removed ,  01:46, 25 September 2011
;GET
:<code>curl -i "admin:admin@localhost:8984/rest/factbook?query=//city/name&amp;count=5"</code>
;POST (Add):<code>curl -i -H "Content-Type: text/xml" -d "&lt;HelloWorld/&gt;" "admin:admin@localhost:8984/rest/world/hello.xml"</code> ;POST (Query) :<code>curl -i -X POST -H "Content-Type: application/query+xml" -d <br/> "&lt;query xmlns='<nowiki>http://www.basex.org/rest'</nowiki>&gt;&lt;text&gt;//city/name&lt;/text&gt;&lt;parameter name='count' value='5'/&gt;&lt;/query&gt;" <br/> "admin:admin@localhost:8984/rest/factbook"</code>:<code>curl -i -X POST -H "Content-Type: application/query+xml" -T query.xml "admin:admin@localhost:8984/rest/factbook"</code>
;PUT
:<code>curl -i -X PUT -T "etc/xml/factbook.xml" "admin:admin@localhost:8984/rest/factbook"</code>
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu