Data service (REST) Sample

Start with a blank SharePoint site and create three lists, all of them based on the “Custom List” template.

• Artists with just one column: Title

• Albums: add a look up column pointing to Artists.Title

• Songs: add two lookup columns, pointing to Artists.Title and Album.Title

http://bruce-pc/_vti_bin/ListData.svc returns all lists available on this site.

Metadata of all lists

Return all artists:

Return the 1st artist:

Return all artisits, order by title

Return top 3 songs

Skip the first 3 and return the next 3

you can continue to stack as many of these actions as you want.

Use filter:

http://bruce-pc/_vti_bin/ListData.svc/Songs?$filter=Title eq ‘Careless Whisper’






Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: