1. サービス エンドポイント リソース

サービス エンドポイント リソース

サービス エンドポイント リソースには、Sitecore Content Hub の REST API にアクセスするためのルート リソースが含まれています。 これは、クライアントが認識している唯一の URL であり、他のすべてのリソースに到達するための開始点として機能します。

サポートされているメソッド: GETHEAD

GET /api

エンティティを見つけられる場所やエンティティ定義などを説明するサービス エンドポイント オブジェクトを返します。

要求の例:

GET http://hostname/api
Host: hostname
Accept: application/json

応答の例:

HTTP/1.1 200 OK
Content-Length: content length
Content-Type: application/json; charset=utf-8
ETag: "hash string"

{
    "entitydefinitions":{
        "href":"http://hostname/api/entitydefinitions",
        "title":"The collection of entity definitions."
    },
    "entities":{
        "href":"http://hostname/api/entities",
        "title":"The collection of entities."
    },
    "entitydefinition_by_name":{
        "href":"http://hostname/api/entitydefinitions/{name}",
        "title":"Get the entity definition with the spe...",
        "is_template":true
    },
    "entity_by_id":{
        "href":"http://hostname/api/entities/{id}",
        "title":"Get the entity with the specified id.",
        "is_template":true
    },
    "authenticate":{
        "href":"http://hostname/api/authenticate",
        "title":"Provides authentication tokens"
    }
}
この記事を改善するための提案がある場合は、 お知らせください!