Developing plugins
Generation introduction about Strapi plugins development
Generation introduction about Strapi plugins development
Overview of the Strapi Server API for plugins, with entry file, lifecycle hooks, routes, controllers, services, policies, middlewares, and configuration.
Define default plugin options, validate user-provided values, and read plugin configuration at runtime.
Declare and register content-types in a Strapi plugin and access them at runtime through the Document Service API.
Handle HTTP requests in plugin controllers and organize reusable business logic in plugin services.
Access and reuse plugin controllers, services, policies, and other server resources using top-level and global getters.
Control when plugin server logic runs with register, bootstrap, and destroy lifecycle hooks.
Guard plugin routes with policies and intercept requests with middlewares in the Strapi plugin Server API.
Expose plugin endpoints as Content API or admin routes, with full control over auth, policies, and route configuration.