ATokeley
14 years agoContributor
Resource Parameters not applying when empty
Hi Guys, can you tell me if this is an issue or if there is something wrong with the way I'm implementing my resource parameters.
When I submit without an Id the request fails ( as you can see from the response window).
The RAW request looks like this -
GET null HTTP/1.1
Accept-Encoding: gzip,deflate
sessionid: 17
If I submit with any type of Id (either valid or otherwise), the request is formed correctly and the endpoint responds appropriately. The RAW request looks as follows:
GET http://api-proxy.web/api.xro/2.0/Contacts/s HTTP/1.1
Accept-Encoding: gzip,deflate
sessionid: 17
User-Agent: Jakarta Commons-HttpClient/3.1
Host: api-proxy.web
NOTE : The GET request is correctly formed.
This seems like a defect to me. Id is a parameter, the request should not get set to null if the parameter is not provided.
Cheers,
Richard
When I submit without an Id the request fails ( as you can see from the response window).
The RAW request looks like this -
GET null HTTP/1.1
Accept-Encoding: gzip,deflate
sessionid: 17
If I submit with any type of Id (either valid or otherwise), the request is formed correctly and the endpoint responds appropriately. The RAW request looks as follows:
GET http://api-proxy.web/api.xro/2.0/Contacts/s HTTP/1.1
Accept-Encoding: gzip,deflate
sessionid: 17
User-Agent: Jakarta Commons-HttpClient/3.1
Host: api-proxy.web
NOTE : The GET request is correctly formed.
This seems like a defect to me. Id is a parameter, the request should not get set to null if the parameter is not provided.
Cheers,
Richard