0

i have a conflict in some point , i need to receive this representation after consuming my endpoint .

the response is like that :

{"6451":{"option":1,"note":""},"6460":{"option":1,"note":""}}

How can i send the above format but in the correct way please through postman application , i don't have an imagination for forming the parameters which i will receive in my PHP controller

Emad Rashad
  • 1
  • 1
  • 1
  • 2
    see https://stackoverflow.com/questions/39008071/send-post-data-via-raw-json-with-postman – Sergey B. Dec 12 '18 at 11:36
  • actually am working on a framework where i should pass the data in particular shape like this params[divid] , params[courseid] , etc , – Emad Rashad Dec 12 '18 at 11:52
  • 1
    Possible duplicate of [Send POST data via raw json with postman](https://stackoverflow.com/questions/39008071/send-post-data-via-raw-json-with-postman) – Haem Dec 12 '18 at 12:01

1 Answers1

2

You can set the raw format in your body request, set application/json and paste your json:

{
  "6451": {
    "option": 1,
    "note": ""
  },
  "6460": {
    "option": 1,
    "note": ""
  }
}
Stefano Maglione
  • 3,946
  • 11
  • 49
  • 96
  • Is what am doing is correct , see the following picture : https://serving.photos.photobox.com/110099627d0a7ef0d2495b7c98518579b9167cfd10b0b0f3f7b167ab6a43c7c66801c72e.jpg . cause am stick with a structure to follow for sending parameters – Emad Rashad Dec 13 '18 at 09:17
  • Check this: https://www.dropbox.com/s/e48hy9vu85w5mv3/Screenshot%202018-12-13%2014.05.18.png?dl=0 – Stefano Maglione Dec 13 '18 at 13:07