エンドポイントを作成する 非推奨

POST /groups/{groupId}/apps/{appId}/endpoints

新しいエンドポイントを作成します。

path パラメータ

application/ JSON

body 必須

新しいエンドポイントの有効な構成オブジェクト

  • 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。

応答

  • 201 application/ JSON

    作成済み

    応答属性の非表示 応答属性の表示 オブジェクト
    • 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
POST /groups/{groupId}/apps/{appId}/endpoints
curl \
 --request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/endpoints' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"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"}'
リクエスト例
{
  "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"
}
応答の例(201)
{
  "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"
}