Skip to content

Commit 00649aa

Browse files
committed
Fix API URLs
1 parent affbd8b commit 00649aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/reference/search-connectors/api-tutorial.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Learn how to set up a self-managed connector using the [{{es}} connector APIs]({
1616
For this example we’ll use the [PostgreSQL connector](/reference/search-connectors/es-connectors-postgresql.md) to sync data from a PostgreSQL database to {{es}}. We’ll spin up a simple PostgreSQL instance in Docker with some example data, create a connector, and sync the data to {{es}}. You can follow the same steps to set up a connector for another data source.
1717

1818
::::{tip}
19-
This tutorial focuses on running a self-managed connector on your own infrastructure, and managing syncs using the Connector APIs.
19+
This tutorial focuses on running a self-managed connector on your own infrastructure, and managing syncs using the connector APIs.
2020

2121
If you’re just getting started with {{es}}, this tutorial might be a bit advanced. Refer to [quickstart](docs-content://solutions/search/get-started.md) for a more beginner-friendly introduction to {{es}}.
2222

@@ -143,7 +143,7 @@ Now it’s time for the real fun! We’ll set up a connector to create a searcha
143143

144144
## Create a connector [es-connectors-tutorial-api-create-connector]
145145

146-
We’ll use the [Create connector API]({{es-apis}}operation/operation-connector-put) to create a PostgreSQL connector instance.
146+
We’ll use the [create connector API]({{es-apis}}operation/operation-connector-put) to create a PostgreSQL connector instance.
147147

148148
Run the following API call, using the [Dev Tools Console](docs-content://explore-analyze/query-filter/tools/console.md) or `curl`:
149149

@@ -267,7 +267,7 @@ GET _connector/my-connector-id
267267

268268
Now our connector instance is up and running, but it doesn’t yet know *where* to sync data from. The final piece of the puzzle is to configure our connector with details about our PostgreSQL instance. When setting up a connector in the Elastic Cloud or Serverless UIs, you’re prompted to add these details in the user interface.
269269

270-
But because this tutorial is all about working with connectors *programmatically*, we’ll use the [Update connector configuration API]({{es-apis}}operation/operation-connector-update-configuration) to add our configuration details.
270+
But because this tutorial is all about working with connectors *programmatically*, we’ll use the [update connector configuration API]({{es-apis}}operation/operation-connector-update-configuration) to add our configuration details.
271271

272272
::::{tip}
273273
Before configuring the connector, ensure that the configuration schema is registered by the service. For self-managed connectors, the schema registers on service startup (once the `config.yml` is populated).
@@ -314,13 +314,13 @@ POST _connector/_sync_job
314314
To store data in {{es}}, the connector needs to create an index. When we created the connector, we specified the `music` index. The connector will create and configure this {{es}} index before launching the sync job.
315315

316316
::::{tip}
317-
In the approach we’ve used here, the connector will use [dynamic mappings](docs-content://manage-data/data-store/mapping.md#mapping-dynamic) to automatically infer the data types of your fields. In a real-world scenario you would use the {{es}} [Create index API](operation/operation-indices-create) to first create the index with the desired field mappings and index settings. Defining your own mappings upfront gives you more control over how your data is indexed.
317+
In the approach we’ve used here, the connector will use [dynamic mappings](docs-content://manage-data/data-store/mapping.md#mapping-dynamic) to automatically infer the data types of your fields. In a real-world scenario you would use the {{es}} [create index API]({{es-apis}}operation/operation-indices-create) to first create the index with the desired field mappings and index settings. Defining your own mappings upfront gives you more control over how your data is indexed.
318318

319319
::::
320320

321321
### Check sync status [es-connectors-tutorial-api-check-sync-status]
322322

323-
Use the [Get sync job API]({{es-apis}}operation/operation-connector-sync-job-get) to track the status and progress of the sync job. By default, the most recent job statuses are returned first. Run the following API call to check the status of the sync job:
323+
Use the [get sync job API]({{es-apis}}operation/operation-connector-sync-job-get) to track the status and progress of the sync job. By default, the most recent job statuses are returned first. Run the following API call to check the status of the sync job:
324324

325325
```console
326326
GET _connector/_sync_job?connector_id=my-connector-id&size=1
@@ -389,6 +389,6 @@ Congratulations! You’ve successfully set up a self-managed connector using the
389389

390390
Here are some next steps to explore:
391391

392-
* Learn more about the [Connector APIs]({{es-apis}}group/endpoint-connector).
392+
* Learn more about the [connector APIs]({{es-apis}}group/endpoint-connector).
393393
* Learn how to deploy {{es}}, {{kib}}, and the connectors service using Docker Compose in our [quickstart guide](https://github.com/elastic/connectors/tree/main/scripts/stack#readme).
394394

0 commit comments

Comments
 (0)