はじめに

導入

運用

参加・貢献

リソース

GitHubでこのページを編集

Home / 5 / web_api / baser_admin_api / bc content link / content_links / コンテンツリンクの単一取得

コンテンツリンクの単一取得

指定したコンテンツリンクを取得します

実行に必要な権限

すべてのユーザー:公開された情報のみ
ログインユーザー以上:全て

リクエスト

認証なし場合、
GET /baser/api/bc-content-link/content_links/{contentLinkId}.json
認証した場合、
GET /baser/api/admin/bc-content-link/content_links/{contentLinkId}.json

パスパラメーター

パラメーター名 必須 内容
contentLinkId 数値 コンテンツリンクのID

レスポンス例

レスポンスボディ

{
  "contentLink": {
    "id": 1,
    "url": "/service",
    "created": null,
    "modified": null,
    "content": {
      "id": 17,
      "name": "content_api",
      "plugin": "BcContentLink",
      "type": "ContentLink",
      "entity_id": 1,
      "url": "",
      "site_id": 1,
      "alias_id": null,
      "main_site_content_id": null,
      "parent_id": 0,
      "lft": 27,
      "rght": 28,
      "level": 0,
      "title": "api test",
      "description": null,
      "eyecatch": null,
      "author_id": 1,
      "layout_template": null,
      "status": true,
      "publish_begin": null,
      "publish_end": null,
      "self_status": true,
      "self_publish_begin": null,
      "self_publish_end": null,
      "exclude_search": false,
      "created_date": "2023-03-31T14:50:11+09:00",
      "modified_date": null,
      "site_root": false,
      "deleted_date": null,
      "exclude_menu": false,
      "blank_link": false,
      "created": "2023-03-31T14:50:11+09:00",
      "modified": "2023-03-31T15:09:59+09:00",
      "site": {
        "id": 1,
        "main_site_id": null,
        "name": "",
        "display_name": "My Site",
        "title": "My Site",
        "alias": "",
        "theme": "BcFront",
        "status": true,
        "keyword": "",
        "description": "",
        "use_subdomain": false,
        "relate_main_site": false,
        "device": "",
        "lang": "",
        "same_main_url": false,
        "auto_redirect": false,
        "auto_link": false,
        "domain_type": null,
        "created": "2023-03-29T21:50:36+09:00",
        "modified": "2023-03-29T21:50:54+09:00"
      }
    }
  },
  "message": null
}