Changes between Version 1 and Version 2 of UserGuidelinesREST


Ignore:
Timestamp:
01/17/10 13:15:41 (12 years ago)
Author:
Praneeth Bodduluri
Comment:

Changed to PUT

Legend:

Unmodified
Added
Removed
Modified
  • UserGuidelinesREST

    v1 v2  
    1 For testing/POST using CURL follow the example
     1For testing/PUT using CURL follow the example
    22
    33In the example - name%40example.com represents your login name@example.com and password is to be replaced by your password.
    44
    5 person.xml is the file name to post.
     5person.xml is the file name to PUT
    66
    77{{{
    8 curl -F 'filename=@person.xml;type=application/xml' http://name%40example.com:password@localhost:8000/sahana/pr/person/create.xml&ignore_errors=True
     8curl -H 'content-type:application/xml' -T person.xml http://name%40example.com:password@localhost:8000/sahana/pr/person.xml&ignore_errors=False
    99}}}