Skip to content

Commit 8e60f29

Browse files
authored
Merge pull request #3494 from meilisearch/fix-api-reference-nav-and-broken-links
Restructure API reference navigation and fix broken links
2 parents d683beb + fb990f2 commit 8e60f29

12 files changed

Lines changed: 1215 additions & 35 deletions

.code-samples.meilisearch.yaml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ search_get_1: |-
9797
get_all_tasks_1: |-
9898
curl \
9999
-X GET 'MEILISEARCH_URL/tasks'
100-
# get_tasks_taskUid
100+
# get_tasks_taskId
101101
get_task_1: |-
102102
curl \
103103
-X GET 'MEILISEARCH_URL/tasks/1'
@@ -107,7 +107,7 @@ get_all_tasks_paginating_1: |-
107107
get_all_tasks_paginating_2: |-
108108
curl \
109109
-X GET 'MEILISEARCH_URL/tasks?limit=2&from=8
110-
# get_keys_uidOrKey
110+
# get_keys_key
111111
get_one_key_1: |-
112112
curl \
113113
-X GET 'MEILISEARCH_URL/keys/6062abda-a5aa-4414-ac91-ecd7944c0f8d' \
@@ -129,7 +129,7 @@ create_a_key_1: |-
129129
"indexes": ["products"],
130130
"expiresAt": "2042-04-02T00:42:42Z"
131131
}'
132-
# patch_keys_uidOrKey
132+
# patch_keys_key
133133
update_a_key_1: |-
134134
curl \
135135
-X PATCH 'MEILISEARCH_URL/keys/6062abda-a5aa-4414-ac91-ecd7944c0f8d' \
@@ -139,7 +139,7 @@ update_a_key_1: |-
139139
"name": "Products/Reviews API key",
140140
"description": "Manage documents: Products/Reviews API key"
141141
}'
142-
# delete_keys_uidOrKey
142+
# delete_keys_key
143143
delete_a_key_1: |-
144144
curl \
145145
-X DELETE 'MEILISEARCH_URL/keys/6062abda-a5aa-4414-ac91-ecd7944c0f8d' \
@@ -578,20 +578,6 @@ update_embedders_1: |-
578578
reset_embedders_1: |-
579579
curl \
580580
-X DELETE 'MEILISEARCH_URL/indexes/INDEX_NAME/settings/embedders'
581-
# get_indexes_indexUid_settings_vector_store
582-
get_vector_store_settings_1: |-
583-
curl \
584-
-X GET 'MEILISEARCH_URL/indexes/INDEX_UID/settings/vector-store'
585-
# patch_indexes_indexUid_settings_vector_store
586-
update_vector_store_settings_1: |-
587-
curl \
588-
-X PATCH 'MEILISEARCH_URL/indexes/INDEX_UID/settings/vector-store' \
589-
-H 'Content-Type: application/json' \
590-
--data-binary '"experimental"'
591-
# delete_indexes_indexUid_settings_vector_store
592-
reset_vector_store_settings_1: |-
593-
curl \
594-
-X DELETE 'MEILISEARCH_URL/indexes/INDEX_UID/settings/vector-store'
595581
# get_indexes_indexUid_settings_chat
596582
get_chat_settings_1: |-
597583
curl \
@@ -726,7 +712,7 @@ create_snapshot_1: |-
726712
get_all_batches_1: |-
727713
curl \
728714
-X GET 'http://MEILISEARCH_URL/batches'
729-
# get_batches_batchUid
715+
# get_batches_batchId
730716
get_batch_1: |-
731717
curl \
732718
-X GET 'http://MEILISEARCH_URL/batches/BATCH_UID'

.github/workflows/openapi-code-samples-check.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# On every push to main, check meilisearch-openapi-mintlify.json for code samples:
1+
# On every push to main, check meilisearch-openapi-mintlify.json:
22
# - Job 1: Ensure every route that has x-codeSamples includes a cURL sample (can fail).
33
# - Job 2: Informational only – list routes and all missing code sample languages (never fails).
4+
# - Job 3: Ensure every OpenAPI route is mapped in docs.json (can fail).
45
name: Check OpenAPI code samples
56

67
on:
@@ -48,3 +49,22 @@ jobs:
4849
- name: List routes and missing code samples (informational, never fails)
4950
run: |
5051
npm run check-openapi-code-samples -- info assets/open-api/meilisearch-openapi-mintlify.json || true
52+
53+
# Fails if any OpenAPI route is not mapped in docs.json API Routes pages.
54+
require-routes-coverage:
55+
name: Require all OpenAPI routes in docs.json
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v6
59+
60+
- uses: actions/setup-node@v6
61+
with:
62+
node-version: "20"
63+
cache: "npm"
64+
65+
- name: Install dependencies
66+
run: npm install
67+
68+
- name: Check all OpenAPI routes are covered in docs.json
69+
run: |
70+
npm run check-openapi-routes-coverage

0 commit comments

Comments
 (0)