Answered by:
REST Api - Https post

Question
-
User-699381365 posted
Hello,
I writing a code to consume a REST api - HTTPS Post method.
I will be consuming that api to send my data. to the external system.
I have got the API url and credentials. Now, how do i test it in postman?? When I gave the url with credentials for basic authentication and hit SAVE, it does nothing,
I am getting "could not get any response" but am also getting the Temporary Headers with encrypted value.
Am i missing something here and where/when i can pass data as the Json parameter to the API.??
Saturday, April 4, 2020 12:14 AM
Answers
-
User-719153870 posted
Hi rgovindarajan,
rgovindarajan
I have got the API url and credentials. Now, how do i test it in postman?? When I gave the url with credentials for basic authentication and hit SAVE, it does nothing,Try hit the Send instead of the Save button.
rgovindarajan
where/when i can pass data as the Json parameter to the API.??Before you send the post, and put yout Json parameter in the request body.
For more information, please check Get Started with Postman.
Best Regard,
Yang Shen
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, April 6, 2020 7:07 AM
All replies
-
User-719153870 posted
Hi rgovindarajan,
rgovindarajan
I have got the API url and credentials. Now, how do i test it in postman?? When I gave the url with credentials for basic authentication and hit SAVE, it does nothing,Try hit the Send instead of the Save button.
rgovindarajan
where/when i can pass data as the Json parameter to the API.??Before you send the post, and put yout Json parameter in the request body.
For more information, please check Get Started with Postman.
Best Regard,
Yang Shen
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, April 6, 2020 7:07 AM -
User1192570106 posted
See Below links:
https://blog.postmates.com/testing-the-postmates-api-with-postman-1d4c55336e85
https://www.toolsqa.com/postman/basic-authentication-in-postman/
In the body section postman have last options(Text), there you can set JSON to pass value as Json parameter.
Monday, April 6, 2020 10:43 AM -
User-699381365 posted
I have disabled the Proxy settings and ran the url and now I am getting 401 unauthorized (incorrect username/pwd) error.
I have reached out the concerned party on that.
Thanks,
Raj
Thursday, April 9, 2020 2:01 AM -
User-699381365 posted
Hi Yang,
Can we send multiple payload in a one post request of rest api?
for example, if we are saving employee details, can we save more than one employee in one single post.
can you share any sample? is there any limitations in sending payload ?
THanks,
Raj
Thursday, April 9, 2020 3:22 PM