Strapi 客户端
🌐 Strapi Client
Page summary:Strapi 客户端是一个 JavaScript 库,它简化了与 Strapi 后端的交互,用于通过
collection()、single()和files()方法获取、创建、更新和删除内容。🌐 The Strapi Client is a JavaScript library that simplifies interactions with your Strapi back end for fetching, creating, updating, and deleting content through
collection(),single(), andfiles()methods.
Strapi 客户端库简化了与 Strapi 后端的交互,提供了一种获取、创建、更新和删除内容的方式。本指南将引导你完成 Strapi 客户端的设置、身份验证配置,以及有效使用其主要功能。
🌐 The Strapi Client library simplifies interactions with your Strapi back end, providing a way to fetch, create, update, and delete content. This guide walks you through setting up the Strapi Client, configuring authentication, and using its key features effectively.
入门
🌐 Getting Started
Prerequisites
- Strapi 项目已创建并正在运行。如果你还没有设置,请按照快速入门指南创建一个。
- 你知道你的 Strapi 实例的内容 API 的 URL(例如,
http://localhost:1337/api)。