Skip to content

Commit 925da25

Browse files
authored
Fix ids of code samples (#3421)
1 parent d44fa7f commit 925da25

6 files changed

+10
-11
lines changed

.code-samples.meilisearch.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ add_or_update_documents_1: |-
6868
delete_all_documents_1: |-
6969
curl \
7070
-X DELETE 'MEILISEARCH_URL/indexes/movies/documents'
71-
# delete_indexes_indexUid_documents_id
71+
# delete_indexes_indexUid_documentId
7272
delete_one_document_1: |-
7373
curl \
7474
-X DELETE 'MEILISEARCH_URL/indexes/movies/documents/25684'
@@ -685,7 +685,7 @@ create_snapshot_1: |-
685685
get_all_batches_1: |-
686686
curl \
687687
-X GET 'http://MEILISEARCH_URL/batches'
688-
# get_batches_id
688+
# get_batches_batchUid
689689
get_batch_1: |-
690690
curl \
691691
-X GET 'http://MEILISEARCH_URL/batches/BATCH_UID'
@@ -720,7 +720,7 @@ export_post_1: |-
720720
webhooks_get_1: |-
721721
curl \
722722
-X GET 'MEILISEARCH_URL/webhooks'
723-
# get_webhooks_uid
723+
# get_webhooks_uuid
724724
webhooks_get_single_1: |-
725725
curl \
726726
-X GET 'MEILISEARCH_URL/webhooks/WEBHOOK_UUID'
@@ -736,7 +736,7 @@ webhooks_post_1: |-
736736
"referer": "https://example.com"
737737
}
738738
}'
739-
# patch_webhooks_uid
739+
# patch_webhooks_uuid
740740
webhooks_patch_1: |-
741741
curl \
742742
-X PATCH 'MEILISEARCH_URL/webhooks/WEBHOOK_UUID' \
@@ -746,7 +746,7 @@ webhooks_patch_1: |-
746746
"referer": null
747747
}
748748
}'
749-
# delete_webhooks_uid
749+
# delete_webhooks_uuid
750750
webhooks_delete_1: |-
751751
curl \
752752
-X DELETE 'MEILISEARCH_URL/webhooks/WEBHOOK_UUID'

snippets/samples/code_samples_experimental_delete_logs_stream_1.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
```bash cURL
44
curl \
55
-X DELETE MEILISEARCH_URL/logs/stream
6+
}'
67
```
78
</CodeGroup>

snippets/samples/code_samples_multi_search_remote_federated_1.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@ curl \
2222
}
2323
}
2424
]
25-
}'
2625
```
2726
</CodeGroup>

snippets/samples/code_samples_related_results_embedder_1.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<CodeGroup>
22

33
```bash cURL
4-
curl -X PATCH 'MEILISEARCH_URL/indexes/movies/settings'
5-
-H 'Content-Type: application/json'
6-
-H 'Authorization: Bearer MEILISEARCH_API_KEY'
4+
curl -X PATCH 'MEILISEARCH_URL/indexes/movies/settings'
5+
-H 'Content-Type: application/json'
6+
-H 'Authorization: Bearer MEILISEARCH_API_KEY'
77
--data-binary '{
88
"embedders": {
99
"movies-text": {

snippets/samples/code_samples_search_parameter_guide_vector_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
```bash cURL
44
curl -X POST 'MEILISEARCH_URL/indexes/INDEX_NAME/search' \
55
-H 'content-type: application/json' \
6-
--data-binary '{
6+
--data-binary '{
77
"vector": [0, 1, 2],
88
"hybrid": {
99
"embedder": "EMBEDDER_NAME"

snippets/samples/code_samples_updating_guide_create_dump.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
curl \
55
-X POST 'http://<your-domain-name>/dumps' \
66
-H 'Authorization: Bearer API_KEY'
7-
# -H 'X-Meili-API-Key: API_KEY' for v0.24 or below
87
```
98
</CodeGroup>

0 commit comments

Comments
 (0)