Get a content

CMSで公開したコンテンツを取得します。

APIエンドポイント

{subdomain} にはプロジェクト固有の値が入ります。KARTE管理画面の「CMS設定」>「APIエンドポイント」で確認できます。

⚠️ 注意: Base URLの{subdomain}を編集しても、API Requestのコード例には反映されません。Shell/Node/Ruby等のExampleは反映されるのでそちらを使うか、API Requestを利用する場合はdevKarte.server()で実際のエンドポイントURLを指定してください。

Required Scope

APIの実行に必要なScopeです。

beta.cdn.cms.content.get

Required Role

管理画面でScopeを追加する際に必要な権限です。

Craft > Craft 設定の編集
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

取得するコンテンツが所属するモデルのIDを指定します。

string
required

取得するコンテンツのIDを指定します。

select
array of strings
Defaults to

取得するコンテンツが持つプロパティを指定できます。複数の値を指定できます。idは必ず含まれます。

select
Headers
string

今後利用する可能性のある予約語です。現在は設定不要です。

Responses

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Choose an example:
application/json