JSS services and APIs
The services and APIs in this topic, unless otherwise stated, are available for all our framework-specific rendering SDKs.
The services and APIs most frequently used by JSS applications follow a service-client-fetcher pattern of implementation and support REST request/response, GraphQL queries, or both. The services and APIs using this pattern are:
Depending on your local development setup, chosen development workflow, and framework, you might also need to become familiar with:
We use the following terminology for JSS services:
A factory creates an instance of a service. In the Next.js sample application, there are examples of factories for services with support for both GraphQL and REST.
Accepts a configuration object.
Contains a fetch method.
Has a default client performing the fetching of data.
Defines data models.
Validates (developer input) logic.
Implements a default Fetcher.
Customize a service
From JSS 18.0.0, the recommended method for customizing/extending a front-end JSS service is to:
Extend the service itself.
Use your new service in a service factory.