Hello Guys,
Just want to know , how to implement the below postman collections in java. Basically how to implement the form-data as body in post method , could you please help me on this ?
example:
{
"info": {
"_postman_id": "48b6c4f9-eed9-4a9f-bfd6-5f4ed7220aea",
"name": "Emailnotification",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "emailnotification_dev",
"item": [
{
"name": "sendMail",
"request": {
"method": "POST",
"header": [
{
"key": "X-IBM-Client-Id",
"value": "",
"type": "text"
},
{
"key": "X-IBM-Client-Secret",
"value": "",
"type": "text"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "body",
"value": "{\n\"To\": \"MailID,MailID\",\n\"Subject\": \"TEST API V1\",\n\"Body\": \"<html> <body><h1>Test mail from API2</h1> </body> </html>\"\n}",
"contentType": "",
"description": "{\n\t\"To\": \"mailid\",\n\t\"Cc\": \"mailid\",\n\t\"Bcc\": \"mailid\",\n\t\"Subject\": \"IBMIntegrationBus\",\n\t\"Body\": \"<html> <body><h1> IBM App Connect </h1> </body> </html>\"\n}",
"type": "text"
},