Skip to main content

29 docs tagged with "Rest API"

View all tags

Back-end customization

All elements of Strapi's back end, like routes, policies, middlewares, controllers, services, models, requests, responses, and webhooks, can be customized.

Controllers

Controllers bundle actions that handle business logic for each route within Strapi’s MVC pattern. This documentation demonstrates generating controllers, extending core ones with createCoreController, and delegating heavy logic to services.

Error handling

With Strapi's error handling feature it's easy to send and receive errors in your application.

Filters

Use Strapi's REST API to filter the results of your requests.

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.

Locale

Browse the REST API reference for the locale parameter to take advantage of the Internationalization feature through REST.

Middlewares

Middlewares alter the request or response flow at application or API levels. This documentation distinguishes global versus route middlewares and illustrates custom implementations with generation patterns.

Models

Strapi models (i.e. content-types, components, and dynamic zones) define a representation of the content structure.

Parameters

Use API parameters to refine your Strapi REST API queries.

Policies

Strapi policies are functions that execute specific logic on each request before it reaches the controller. Policies can be customized according to your needs.

Relations

Use the REST API to manage the order of relations

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.

Routes

Strapi routes handle requests to your content and are auto-generated for your content-types. Routes can be customized according to your needs.

Services

Strapi services are a set of reusable functions, useful to simplify controllers logic.

Status

Use Strapi's REST API to work with draft or published versions of your documents.

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.

Upload files

Learn how to use the /api/upload endpoints to upload files to Strapi with the REST API.

Webhooks

Strapi webhooks are user-defined HTTP callbacks used by an application to notify other applications that an event occurred.