Skip to Content
0
Sep 23, 2014 at 09:23 AM

Expose a collection from a xsodata service

43 Views

Hi

I have created a xsodata service "preferences" which exposes the table columns .

service {

"SCHEMA_NAME"."package_path::TABLE_NAME" as "preferences";

}

The table columns are

KEY VALUE ITEM_TYPE

a 1 apple

b 2 apple

x 8 apple

c 3 orange

d 4 orange

e 9 orange

Is it possible to expose a certain set of collection from the xsodata service "preferences", as lets say, preferences.xsodata/apple and preferences.xsodata/orange. How do you define such a service in the xsodata file?

I have referred the developer guide. The OSDL syntax doesnt give any clue about exposing a certain set of items/rows from the table.

Appreciate your help.

Thanks,

Ponraj