5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

SharePoint REST API エンドポイント

5
Posted at

SharePoint REST エンドポイント例

説明 URLエンドポイント HTTPメソッド 本文のコンテンツ
サイトのタイトルを取得する web/title GET 該当しない
サイト上のすべてのリストを取得する lists GET 該当なし
単一の 'リスト' メタデータを取得する lists/getbytitle('listname') GET 該当しない
リスト内のアイテムを取得する lists/getbytitle('listname')/items GET 該当なし
リストの特定のプロパティを取得する(この場合はリスト タイトル) lists/getbytitle('listname')?select=Title GET 該当しない
リストを作成する lists POST サンプルを参照
リストにアイテムを追加する lists/getbytitle('listname')/items POST サンプルを参照
json(リストを作成する)
{
  "__metadata": {
    "type": "SP.List"
  },
  "AllowContentTypes": true,
  "BaseTemplate": 104 ,
  "ContentTypesEnabled": true,
  "Description": "My list description ",
  "Title": "RestTest "
}


json(リストにアイテムを追加する)
{
  "__metadata": {
    "type": "SP.Data.listname.ListItem"
  },
  "Title": "MyItem"
}


参考


著者: E.R (株式会社ウィズツーワン)

5
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?