I am trying to simulate a POST call from a mobile app using POSTMAN. I did the following:
- Verb : POST
- Params: added 2 params (both show up in the URL)
- Header: added key-value pair - Content-Type / application/json
- Body: selected 'form-data' radio button and added 2 key-value pairs to represent the form input - email / someone@gmail.com & age / 18
When I submit the request and in my server code (PHP) I print the $request object I only get the params (step #2) and not the form field.
Wondering whether POSTMAN is not passing the form data or I am not looking at the right place (ie in $request object).
I also tried with 'raw' instead of 'form-data' and passed a JSON, but same result.
I tried calling the same API from the web application, I get proper form-data values in the $request object.
Any help to resolve the issue I am facing is much appreciated. I have spent almost whole day going through POSTMAN doc and searching on google but not much headway.