REST API 指南
¥REST API Guides
REST API 参考 文档旨在提供所有可用端点和参数的快速参考。
¥The REST API reference documentation is meant to provide a quick reference for all the endpoints and parameters available.
指南
¥Guides
以下指南由 Strapi 文档团队官方维护,涵盖专门主题并为某些用例提供详细说明(用 🧠 表示的指南)或分步说明(用 🛠️ 表示的指南):
¥The following guides, officially maintained by the Strapi Documentation team, cover dedicated topics and provide detailed explanations (guides indicated with 🧠) or step-by-step instructions (guides indicated with 🛠️) for some use cases:
Understanding populate
Learn what populating means and how you can use the populate parameter in your REST API queries to add additional fields to your responses.
How to populate creator fields
Read step-by-step instructions on how to build a custom controller that leverages the populate parameter to add 'createdBy' and 'updatedBy' data to queries responses
其他资源
¥Additional resources
本节列出的一些额外资源是为 Strapi v4 创建的,可能无法完全与 Strapi 5 一起使用。如果你想为 Strapi 5 更新以下文章之一,请随时为 Write for the Community 计划使用 提出文章。
¥Some of the additional resources listed in this section have been created for Strapi v4 and might not fully work with Strapi 5. If you want to update one of the following articles for Strapi 5, feel free to propose an article for the Write for the Community program.
其他教程和指南可以在以下博客文章中找到:
¥Additional tutorials and guides can be found in the following blog posts:
Authenticating requests with the REST API
Learn how to authenticate your REST API queries with JSON Web Tokens and API tokens.
Authentication and Authorization in Strapi: Best Practices
Explore the differences between authentication and authorization and discover best practices for both.
Using Fetch with Strapi's Content API
Explore how to use the fetch() method of the Fetch API to interact with Strapi's Content API.
Requesting Strapi's REST API behind a Content Delivery Network (CDN)
Learn how to overcome network latency issues when requesting large numbers of media assets by leveraging the usage of a CDN with Strapi's REST API.