odata-client
odata-client copied to clipboard
Requesting an individual resource - request produced using path parameter instead of ID in brackets encoded in URL
Hey David,
Quick question - is this somehow achievable using the generated client:
So desired HTTP request form:
{serviceUri}/odata/Constructions(1296481)....
OData generated client by your generator produces:
{serviceUri}/odata/Constructions/1296481/....
For the invocation looking like this:
ugkkClient.constructions(id).select("Id").expand(...)...
It seems that OData standard itself implicitly goes with the 1st form: link (see step 2)
Am I doing something wrong here?
Thank you!