Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I got a web service API. I know basic knowledge web services. I am trying to test the web service through the postman. but I could not able to succeed. if any have answer please help me. I got sample code nodejs. below I gave web services API. please, anyone, see and how to handle that data.

POST /api/v1/sessions
Date: Wed, 28 Nov 2018 06:22:27 -0000
Content-Type: application/json;charset=utf-8
Content-MD5: wQsVzvcXwtwzoiZ13iAVWA==

{
"password": "sym", 
"username": "sym"
}

they gave their own json commander tools. if I send this request in JSON commander it is giving the proper response.if I use the same request. I tested by the postman.it is not working. and getting this error response also

{
"status" : 400,
"code" : 40001,
"resource" : null,
"properties" : [ ],
"message" : "The Date header is invalid.",
"developerMessage" : "The Date header is invalid. Make sure that a the Date or X-Aah-Date header is set and has a valid format."


What I have tried:

I am trying to write a IOT device in lock
Posted
Updated 2-Dec-18 21:39pm

As the error says, you have to set proper header for the requests. Postman enables you to set custom headers on the request. Also, you shouldn't show your username and password in the public forum, even for some developer machine.
 
Share this answer
 
Comments
Member 12828115 30-Nov-18 6:28am    
I tried.i could have not set the date format
How to set date and time this format on postman
Monday, 03-December-18 07:41:29 UTC
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900