An OData service contains an entity set called Products. Which resource path do you add to the OData service URL to view all available products?
Please choose the correct answer.
Options:
A.
/Products/$metadata
B.
/Products/'
C.
/Products
D.
/Products/ALL
Answer:
C
Explanation:
Explanation:
According to the SAP HANA Developer Guide, the resource path of an OData service URL identifies the entity or entity set that is requested. The resource path consists of the service root URI followed by a slash (/) and the name of the entity set. For example, to view all available products in the Products entity set, the resource path is /Products. The other options are incorrect, because:
/Products/$metadata is not a valid resource path, but a system query option that returns the metadata document of the OData service.
/Products/’ is not a valid resource path, but a syntax error. The single quotation mark is not needed after the entity set name.
/Products/ALL is not a valid resource path, but a filter expression that can be used as a query option. The filter expression must be preceded by a question mark (?) and the $filter system query option. For example, /Products?$filter=ALL.
References: SAP HANA Developer Guide, Chapter 6, Section 6.4.2, page 2111.