厌倦了在终端中使用 curl 命令来测试 Meilisearch 吗?当想要尝试一个 API 时,重新编写每个路由可能很繁琐。 Postman 是一个平台,可让您创建可轻松重用并与所有人共享的 HTTP 请求。我们提供了一个包含所有 Meilisearch API 路由的 Postman 集合!🚀 如果您还没有 Postman,可以在此处下载。它是免费的,可在许多操作系统发行版上使用。

导入集合

下载 Postman 集合后,您需要将其导入 Postman。
The 'Import' button

编辑配置

Selecting 'Edit' from the overflow menu
如果需要,设置“令牌”(默认为 masterKey
The 'Token' field set to masterKey and 'Type' to Bearer Token in the 'Authorization' tab.
设置 url(默认为 Meilisearch 的本地端口)和 indexUID(默认为 indexUID
Setting the 'URL' to https://:7700/ and 'indexUID' to indexUId in the Variables tab.
urlindexUID 变量在所有集合路由中使用,例如此路由
Highlighting {{url}} and {{indexUID}}

开始使用

您现在可以运行您的 Meilisearch 实例并创建您的第一个索引
The 'Send' button
© . This site is unofficial and not affiliated with Meilisearch.