Created
July 29, 2013 07:26
-
-
Save vanjikumaran/6102624 to your computer and use it in GitHub Desktop.
curlRequestjson
This file contains 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
curl -i -H "Content-Type: application/json" -X POST -d '{ | |
"peoples": { | |
"people": [ | |
{ | |
"class": "Person", | |
"name": "vanjikumaran", | |
"birthday": "today", | |
"nickname": "Oracle of Omaha", | |
"phonNumbers": { | |
"phonNumber": [ | |
{ | |
"class": "Phone", | |
"name": "cell", | |
"number": "555-123-4567" | |
}, | |
{ | |
"class": "Phone", | |
"name": "home", | |
"number": "555-987-6543" | |
}, | |
{ | |
"class": "Phone", | |
"name": "work", | |
"number": "555-678-3542" | |
} | |
] | |
} | |
}, | |
{ | |
"class": "Person", | |
"name": "Steven Jobs", | |
"birthday": "Yesterday", | |
"nickname": "Steve", | |
"phonNumbers": { | |
"phonNumber": [ | |
{ | |
"class": "Phone", | |
"name": "cell", | |
"number": "555-123-4567" | |
}, | |
{ | |
"class": "Phone", | |
"name": "home", | |
"number": "555-987-6543" | |
}, | |
{ | |
"class": "Phone", | |
"name": "work", | |
"number": "555-678-3542" | |
} | |
] | |
} | |
} | |
] | |
} | |
}' http://localhost:8280/Test/json/ | |
This file contains 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
curl -i -H "Content-Type: application/json" -X POST -d '{ | |
"peoples": { | |
"people": [ | |
{ | |
"class": "Person", | |
"name": "vanjikumaran", | |
"birthday": "today", | |
"nickname": "Oracle of Omaha", | |
"phonNumbers": { | |
"phonNumber": [ | |
{ | |
"class": "Phone", | |
"name": "cell", | |
"number": "555-123-4567" | |
}, | |
{ | |
"class": "Phone", | |
"name": "home", | |
"number": "555-987-6543" | |
}, | |
{ | |
"class": "Phone", | |
"name": "work", | |
"number": "555-678-3542" | |
} | |
] | |
} | |
}, | |
{ | |
"class": "Person", | |
"name": "Steven Jobs", | |
"birthday": "Yesterday", | |
"nickname": "Steve", | |
"phonNumbers": { | |
"phonNumber": [ | |
{ | |
"class": "Phone", | |
"name": "cell", | |
"number": "555-123-4567" | |
}, | |
{ | |
"class": "Phone", | |
"name": "home", | |
"number": "555-987-6543" | |
}, | |
{ | |
"class": "Phone", | |
"name": "work", | |
"number": "555-678-3542" | |
} | |
] | |
} | |
} | |
] | |
} | |
}' http://localhost:8280/Test/xml/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment