http://htvspt13dev1:1020/_api/web/lists/getByTitle('Events')/items
http://htvspt13dev1:1020/Roblog/_api/web/lists/getByTitle('posts')
To access a specific site, use the following construction:
http://htvspt13dev1:1020/_api/web
http://htvspt13dev1:1020/_api/web/lists/getbytitle('Events')/fields/getByTitle('Title')
http://htvspt13dev1:1020/Roblog/Lists/Photos/_api/SP.Utilities.Utility.getImageUrl('CEOBlogImg.png')
http://htvspt13dev1:1020/Roblog/_api/web/lists/getByTitle('photos')/items(1)
http://htvspt13dev1:1020/Roblog/_api/web/lists/getByTitle('posts')
To access a specific site collection, use the following construction:
http://htvspt13dev1:1020/_api/siteTo access a specific site, use the following construction:
http://htvspt13dev1:1020/_api/web
Feature area
|
Access point
|
---|---|
Site
|
http://server/site/_api/site
|
Web
|
http://server/site/_api/web
|
User Profile
|
http:// server/site/_api/SP.UserProfiles.PeopleManager
|
Search
|
http:// server/site/_api/search
|
Publishing
|
http:// server/site/_api/publishing
|
Client object model API
|
REST endpoint
|
---|---|
ClientContext.Web.Lists
|
http://server/site/_api/web/lists
|
ClientContext.Web.Lists[guid]
|
http://server/site/_api/web/lists(‘guid’)
|
ClientContext.Web.Lists.GetByTitle("Title")
|
http://server/site/_api/web/lists/getbytitle(‘Title’)
|
http://htvspt13dev1:1020/_api/web/lists/getbytitle('Events')/fields/getByTitle('Title')
To construct URIs that correspond to static methods or properties, use the
corresponding API name from the ECMAScript object model, starting with the
namespace declaration and using dot notation. For example, SP.Utilities.Utility.getImageUrl(imageName) in the ECMAScript
client object model would have the following REST equivalent:
http://server/site/_api/SP.Utilities.Utility.getImageUrl('imageName')
http://htvspt13dev1:1020/Roblog/Lists/Photos/_api/SP.Utilities.Utility.getImageUrl('CEOBlogImg.png')
The following example shows how to retrieve all of a
list’s items.
url: http://site url/_api/web/lists/GetByTitle(‘Test')/items method: GET headers: Authorization: "Bearer " + accessToken accept: "application/json;odata=verbose" or “application/atom+xml”
The following example shows how to retrieve a specific
list item.
url: http://site url/_api/web/lists/GetByTitle(‘Test')/items(item id) method: GET headers: Authorization: "Bearer " + accessToken accept: "application/json;odata=verbose" or “application/atom+xml”
http://htvspt13dev1:1020/Roblog/_api/web/lists/getByTitle('photos')/items(1)
URI Conventions - Filter System Query Option ($filter) |
http://msdn.microsoft.com/en-US/library/office/jj163227#bkmk_constructquery |
web/lists/getByTitle('ListName')/Items?$select=Title&$filter=AverageRating
gt 3
source: http://msdn.microsoft.com/en-us/library/office/dn292556.aspx
No comments:
Post a Comment