Skip to content

Add cURL and CLI code samples to the Management API reference - #3785

Merged
curquiza merged 1 commit into
cloud-api-docsfrom
management-api-code-samples
Nov 23, 2026
Merged

curquiza merged 1 commit into
cloud-api-docsfrom
management-api-code-samples

Conversation

@curquiza

Copy link
Copy Markdown
Member

The Management API reference used the code samples that Mintlify generates. It now shows our own samples: a cURL sample for every route, and a CLI sample when the CLI implements the route. No other language is shown, because the SDKs do not cover the Management API.

Based on #3694. The CLI samples come from meilisearch/cli#98.

Changes

  • Samples: .code-samples.meilisearch.yaml has a cURL sample for each of the 27 routes, in a new ## BEGIN /reference/management-api section. Keys start with management_. The line above each key is its route id, as for the Meilisearch API.
  • OpenAPI file: npm run generate-mintlify-openapi-file also writes assets/cloud-assets/meilisearch-cloud-openapi-mintlify.json, from meilisearch-cloud-openapi.yaml. It keeps only the cURL and CLI samples. The navigation uses this file, and shows only the curl language.
  • CI:
    • openapi-code-samples-check.yml: every Management API route must have a cURL sample. The informational job also lists the routes without a CLI sample.
    • post-deployment.yml: generates both Mintlify files, validates both with mint openapi-check, and commits each changed file.
    • check-code-samples-usage: a route comment can name a route of either OpenAPI file.
  • Docs: CONTRIBUTING.md and the curl-code-samples and update-api-ref skills explain the new section.

The committed Mintlify file has no CLI sample yet: the CLI pull request is not merged. The post-deployment workflow adds them after it is merged.

🤖 Generated with Claude Code

The Management API reference used the code samples Mintlify generates. It now uses our own cURL samples, and the CLI samples of the same keys. The SDKs do not cover the Management API, so no other language is shown.

- Add a cURL sample for each of the 27 Management API routes.
- Generate assets/cloud-assets/meilisearch-cloud-openapi-mintlify.json with these samples, and use it in the navigation.
- Check the Cloud file in CI: cURL coverage, Mintlify validation, and sample usage.
@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
documentation-chat Error Error Nov 23, 2026 8:48pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@curquiza
curquiza merged commit 83166f1 into cloud-api-docs Nov 23, 2026
2 of 3 checks passed
@curquiza
curquiza deleted the management-api-code-samples branch November 23, 2026 20:49

This branch was successfully deployed

1 active deployment
staging — 83166f19 Deployed Nov 23, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant