我无法作为strapi后端找到JSON文件中的所有数据?

发布于 2025-02-11 22:39:17 字数 484 浏览 0 评论 0原文

** https://admin.medicte.ca/doctors ** https://admin.medicte.ca/doctors?doctorname_contorn _contorname_contains_contains = tuuys

=您可以在这里看到,有两个不同的URL是Strapi JSON文件。这里的问题是当我单击第一个链接时,只有100位医生。在CMS中。管理面板我可以看到143位医生。如果我像第二个URL中的名称搜索。有那个医生,它没有出现在第一个链接上。有解决方案吗?

**https://admin.medicte.ca/Doctors
**https://admin.medicte.ca/Doctors?doctorName_contains=tuysuz

As you can see here, there are two different urls which are strapi json files. The problem here is when I click first link there is only 100 doctor. In CMS. admin panel I can see 143 doctor. If I search by name like in the second url. There is that doctor, which it doesn't appear on the first link. Any solution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

奢欲 2025-02-18 22:39:17

这称为分页。

如果您的集合的大小超过了页面大小,只需要求下一页: https://docs.strapi.io/developer-docs/latest/developer-resources/database-pabase-apis-reference-reference-reference-reference-reference-reference-reference-referenc--referenc--refere/rest/rest/sort-paginati一下一下>您还可以使用config/api.js中的限制

// path: ./config/api.js

module.exports = ({ env }) => ({
  rest: {
    defaultLimit: 100,
    maxLimit: 250,
  },
});

This is called pagination.

If the size of your collection exceeds the page size, simply ask for the next page: https://docs.strapi.io/developer-docs/latest/developer-resources/database-apis-reference/rest/sort-pagination.html or you can also change the limit in config/api.js with

// path: ./config/api.js

module.exports = ({ env }) => ({
  rest: {
    defaultLimit: 100,
    maxLimit: 250,
  },
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文