跳到主要内容

37 篇文档带有标签「Content API」

查看所有标签

Bulk Operations

Use Strapi's Query Engine API to perform operations on multiple entries.

Document Service API

The Document Service API is the recommended way to interact with your content from the back-end server or from plugins.

Documents

Learn what a Document is in Strapi v5

GraphQL API

The GraphQL API allows performing queries and mutations to interact with the content-types through Strapi's GraphQL plugin. Results can be filtered, sorted and paginated.

How to populate creator fields

Learn how to populate creator fields such as createdBy and updatedBy by creating a custom controller that leverages the populate parameter.

No findPage() in Document Service API

In Strapi 5, the Entity Service API is deprecated, and for the findPage() method you should use the Document Service API's findMany() method instead.

Parameters

Use API parameters to refine your Strapi REST API queries.

Query Engine API

Strapi provides a Query Engine API to give unrestricted internal access to the database layer at a lower level.

Relations

Use the REST API to manage the order of relations

Reserved attributes and content-types names

In Strapi 5, some attributes and content types names are reserved, and all fields or content types using the reserved names should be renamed before migrating to prevent data loss.

REST API Guides

Deep dive into some specific REST API topics using guides that extensively explain some use cases or give step-by-step instructions.

REST API reference

Interact with your Content-Types using the REST API endpoints Strapi generates for you.

Single Operations

Use Strapi's Query Engine API to perform operations on single entries.

The GraphQL API has been updated

In Strapi 5, the GraphQL API has been updated. It handles the new, flattened response format, and can also now accept Relay-style queries.

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.