strapi_使用Strapi构建自定义API

堵存
2023-12-01

strapi

视频 (Video)

关于谈话 (About the Talk)

Let’s build a custom API. Strapi is a Node CMS that lets us create our own APIs quickly from a clean dashboard. We don’t have to jump into Node code to create a database, database connections, models, etc. Strapi lets us create an API in very little time!

让我们构建一个自定义API。 Strapi是Node CMS,可让我们从干净的仪表板中快速创建自己的API。 我们无需跳入Node代码即可创建数据库,数据库连接,模型等。Strapi使我们能够在很短的时间内创建API!

重要要点 (Key Takeaways)

  • Building a custom API can be done quickly

    可以快速完成自定义API的构建
  • Building a custom API without writing Node code

    无需编写节点代码即可构建自定义API
  • We can get up and running with a REST API or GraphQL API

    我们可以使用REST API或GraphQL API来启动和运行

为什么要观看? (Why Watch?)

  • You want to build your own APIs, and you want to do it quickly!

    您想要构建自己的API,并且想要快速完成!
  • You want to build a backend API, but don’t have the Node expertise, or want to focus on frontends.

    您想构建一个后端API,但没有Node专业知识,或者想专注于前端。

先决条件 (Prerequisites)

Knowledge of APIs and what APIs are is good to have.

具有API知识以及具有什么API是很好的。

Strapi常见问题 (FAQ on Strapi)

  • Does Strapi have draft/published status? Yes

    Strapi是否具有草稿/已发布状态?

  • Can you schedule content? Yes

    您可以安排内容吗?

  • Are Strapi’s APIs usable by mobile apps? Yes. APIs are platform agnostic and can be used to build anything from website to mobile app.

    Strapi的API是否可用于移动应用程序? 是。 API与平台无关,可用于构建从网站到移动应用的所有内容。
  • Did you use the free version in this webinar? Yes. Strapi is open source and free.

    您是否在此网络研讨会中使用了免费版本? 是。 Strapi是开源且免费的。
  • Can I get the source code for Strapi? Yes. It’s on GitHub

    我可以获取Strapi的源代码吗? 是。 在GitHub上

  • Is there an API to create/edit users? Yes

    是否有用于创建/编辑用户的API?

  • Are there hooks like beforeSave or beforeCreate? Yes. The Strapi Model has lifecycle methods

    是否有像beforeSave或beforeCreate这样的钩子? 是。 Strapi模型具有生命周期方法

  • Can I add 3rd party authentication? Yes. You can add a new auth provider.

    我可以添加第三方认证吗? 是。 您可以添加新的身份验证提供程序。

关于主持人 (About the Presenter)

Chris Sevilleja (@chrisoncode) is the founder of scotch.io and Senior Developer Advocate at DigitalOcean. He loves trying to figure out the most efficient and practical way to build apps that we can ship to our customers.

Chris Sevilleja ( @chrisoncode )是scotch.io的创始人,也是DigitalOcean的高级开发顾问。 他喜欢尝试找出最有效,最实用的方式来构建我们可以交付给客户的应用程序。

翻译自: https://www.digitalocean.com/community/tech_talks/building-custom-apis-with-strapi

strapi

 类似资料: