mrkkrp / req

An HTTP client library
Other
337 stars 40 forks source link

Couldn't find a way to call odata services #157

Open marcellourbani opened 1 year ago

marcellourbani commented 1 year ago

I couldn't find a way to encode an odata call like this without escaping the parenthesis and guotation marks:

###
# @name Hashvalue
GET https://developer-challenge.cfapps.eu10.hana.ondemand.com/v1/hash(value='this-is-the-year-of-the-api')
CommunityID: MarcelloUrbani

I understand that's the sensible behaviour in most cases, but not for odata services, the de facto standard for SAP stuff

Did I miss something? In the meanwhile I switched to a lower level library

mrkkrp commented 1 year ago

I think we need an escape hatch here, since there are all kinds of variations in the "real world". It shouldn't be too hard to add...