Hi Expert,
Hope You all are doing well!!
I am working on some requirement where I have to create instances of object into the other system from COD.
The system support Rest webservice so I have created a new Rest service using "HTTP" method : POST
Service Protocol: JSON.
Here the Content type have two option 'Form' and 'XML Body' but the Rest API I am using, provide only JSON as its communication format,
and I have JSON Request.
My question are...
1. Can I use JSON code into the field 'Body' when content type selected 'XML Body'
2. If not then how to send JSON request.
3. "Generate Body Parameters" button used for extract the parameter from code, if I am using below JSON fromat (for example) then what are the parameter will be generated (I tried to generate parameter with below code and some other code, but nothing has generated)
{
"employees": [
{ "firstName":"John" , "lastName":"Doe" },
{ "firstName":"Anna" , "lastName":"Smith" },
{ "firstName":"Peter" , "lastName":"Jones" }
]
}
or
<Employee>
<firstname>Sunil</firstname>
<firstname>Kumar</firstname>
<firstname>Maurya</firstname>
</Employee>
4. Here we can only select two HTTP method Get or Post, then how to update or delete there is no PUT and Delete method available.
Does POST method will work also for update?
Please help me to get these answers, this will be a great help !!!
Regards:
Sunil