lundi 1 février 2021

I want to pass the nested JSON query as request body in my test data (C#)

I have to pass the request body as

{
  "id": 0,
  "name": "TestProfile1",
  "productOffer": "Single Ops",
  "createdDate": "02/01/2021",
  "createdBy": "Adm6",
  "organization": "cmp-pp-org-8",
  "provisioningProfiles": [
    {
      "profileID":164 ,
      "serviceType": 6
    }
  ]
}  

and I want the response as

{
  "accepted": true,
  "message": "Profiles saved successfully"
}

Aucun commentaire:

Enregistrer un commentaire