我在共享點頁面中有一個webid和一個listid。我試圖建立一個休息網址到列表。什麼是sharepoint剩餘端點以通過其id來獲取網絡
我無法弄清楚給WebID的網址。
我試圖 https://xxxx.sharepoint.com/_api/web/webs(guid '33213c5c-30e5-468c-87f7-52b48a7b6a3d') https://xxxx.sharepoint.com/_api/web/webs( '33213c5c-30e5-468c-87f7-52b48a7b6a3d') https://xxxx.sharepoint.com/_api/web/webs/GetById( '33213c5c-30e5-468c-87f7-52b48a7b6a3d')
如何使用該ID登錄網站?我需要在網上獲得一個列表。 我以爲它會像 https://xxxx.sharepoint.com/_api/web/webs(guid'33213c5c-30e5-468c-87f7-52b48a7b6a3d')/ lists(guid'the-list-id)那樣簡單,但我無法登陸網絡!
++++++++++++++++ mReply到瓦迪姆++++++++++++++++++++++++
感謝瓦迪姆, 你讓我指出了正確的方向
該網址會得到我的網站: https://xxx.sharepoint.com/_api/web/webs $ =過濾器的iD EQ guid'33213c5c-30e5-468c-87f7-52b48a7b6a3d」
這個網址會給我所有網站的所有列表中的所有項目 https://xxx.sharepoint.com/_api/web/webs?$ expand = lists,lists/items
該網址會得到我的所有列表中的所有項目中指定的Web: https://xxx.sharepoint.com/_api/web/webs $擴大=列表,列表/項目& $ =過濾器的iD EQ guid'33213c5c-30e5-468c-87f7-52b48a7b6a3d」
?但是,我如何獲得指定網頁中指定列表中的所有項目? This does not work: https://xxx.sharepoint.com/_api/web/webs?$ expand = lists,lists/items & $ filter =((iD eq guid'33213c5c-30e5-468c-87f7-52b48a7b6a3d')and(Lists/Id eq guid'd38444af-dd7f-404b -9e75-b1f8c6cdee7d'))
它是一個有效的Web ID和一個有效的列表ID,但sharepoint抱怨:m:message xml:lang =「en-US」>字段或屬性「Id」不存在。
有什麼想法?
感謝瓦迪姆找到的網頁,堆棧溢出不會讓我發表評論,因爲它是太長了。我在原始問題中添加了我的評論。 – Russellg 2015-01-23 01:23:30