エンドポイントを取得する 非推奨

GET /groups/{groupId}/apps/{appId}/endpoints/{endpointId}

特定のエンドポイントの構成を取得します。

path パラメータ

応答

  • 200 application/ JSON

    OK

    応答属性の非表示 応答属性の表示 オブジェクト
    • route string 必須
    • http_method string 必須

      値は、GETPOSTPUTPATCHDELETE、または * です。

    • function_id string 必須

      エンドポイント関数のユニークな ID。

    • validation_method string 必須

      値は NO_VALIDATIONSECRET_AS_QUERY_PARAM、または VERIFY_PAYLOAD です。

    • secret_id string

      validation_method"SECRET_AS_QUERY_PARAM" または "VERIFY_PAYLOAD" に設定されている場合、これはリクエストを承認するシークレット_id です。

    • return_type string 必須

      データAPIとカスタム エンドポイントによってサポートされているデータ形式。

      値は JSON または EJSON です。

    • respond_result ブール値 必須
    • fetch_custom_user_data ブール値
    • create_user_on_auth ブール値
    • disabled ブール値 必須
    • _id string

      エンドポイントのユニークな ID。

    • function_name string
GET /groups/{groupId}/apps/{appId}/endpoints/{endpointId}
curl \
 --request GET 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/endpoints/{endpointId}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
応答の例(200)
{
  "route": "string",
  "http_method": "GET",
  "function_id": "string",
  "validation_method": "NO_VALIDATION",
  "secret_id": "string",
  "return_type": "JSON",
  "respond_result": true,
  "fetch_custom_user_data": true,
  "create_user_on_auth": true,
  "disabled": true,
  "_id": "string",
  "function_name": "string"
}