odata-client icon indicating copy to clipboard operation
odata-client copied to clipboard

Requesting an individual resource - request produced using path parameter instead of ID in brackets encoded in URL

Open BrandU opened this issue 7 months ago • 2 comments

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!

BrandU avatar Nov 16 '23 08:11 BrandU