文档服务 API
¥Document Service API
文档服务 API 建立在查询引擎 API 之上
¥The Document Service API is built on top of the Query Engine API
并用于对文档 执行 CRUD(create、retrieve、update 和 delete)操作。
¥and used to perform CRUD (create, retrieve, update, and delete) operations on documents .
使用文档服务 API,你还可以 count 文档,如果内容类型上启用了 起草并发布,还可以执行 Strapi 特定的功能,例如 publishing/unpublishing 文档和 丢弃草稿。
¥With the Document Service API, you can also count documents and, if Draft & Publish is enabled on the content-type, perform Strapi-specific features such as publishing/unpublishing documents and discarding drafts.
文档服务 API 旨在取代 Strapi v4 中使用的实体服务 API(查看 Strapi v4 文档)。有关如何从实体服务 API 过渡到文档服务 API 的更多信息,请参阅相关的 迁移参考。
¥The Document Service API is meant to replace the Entity Service API used in Strapi v4 (see Strapi v4 documentation). Additional information on how to transition away from the Entity Service API to the Document Service API can be found in the related migration reference.