on 03-08-2024 12:22 AM
Hi ,
I am trying to consume Rest API from ABAP Program and it works but when passing a parameter 'startDate' in the url
It returns with status 400 "bad request" and the message is : "the startDate should be a valid date with format YYYY-MM-DDTHH:mm:ss"
My url like this :
'https://test-ex-api.xx/test/internal/v1/accounts/statements?startDate=2023-05-01T12:43:40' .
but it works fine in postman with the same format date .
can any one help me ?
The URL should be escaped so replace the : character with %3A and try again.
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI @Ryan-Crosby , they recieve the date like this :
startDate : locations":["query"],"values":["2023-05-01T12%3a43%3a40"]
i think the parameter is escaped directly without escaping it .
can we unescaping it ?
User | Count |
---|---|
76 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.