cancel
Showing results for 
Search instead for 
Did you mean: 

@sap/cds-odata-v2-adapter-proxy - Entity with parameters

mani_ac
Participant

Hi ,

I have a problem in forming the URL for v2 odata service when there is a entity(here - Project) with parameters. I tried the following

/v2/catalog/ProjectParameters(IP_VAL='12')/Results
/v2/catalog/Project(IP_VAL='12')/Results

/v2/catalog/Project(IP_VAL='12')/Set

The last one is giving the results in V4 format. Kindly suggest how to form the correct URL to get the data in V2 .


Thanks

OliverKlemenz
Advisor
Advisor
0 Kudos

Hi Manikandan,

the correct URL is "/v2/catalog/Project(IP_VAL='12')/Set"

Without knowing your model, it should work and return a OData v2 response.

What is the result of the call?

Best regards,

Oliver

Accepted Solutions (0)

Answers (1)

Answers (1)

OliverKlemenz
Advisor
Advisor
0 Kudos

Hi Manikandan,

the correct URL is "/v2/catalog/Project(IP_VAL='12')/Set"

Without knowing your model, it should work and return a OData v2 response.

What is the result of the call?

Best regards,

Oliver