Building better Web APIs
POST "/company.json"
Params :
{
"user_attributes": {
"name": "Hemant Kumar",
"password": "password",
"password_confirmation": "password",
"email": "
[email protected]"
},
"company_attributes": {
"name": "Codemancers Technologies",
"address": "blah blah"
}
"payment_attribtutes": {
"credit_card": {
"number": "4242"
},
"amount": "42"
}
}
Sunday, 30 September 12