JSS Layout API

Version: 22.x

Sitecore JavaScript Rendering SDK (JSS) provides an API to help you retrieve information about layouts from Sitecore.

When using JSS, you can get layout data from several endpoints, without worrying about data fetching implementation details. The JSS Layout API abstracts data fetching implementation details into services, clients, and data fetchers for REST and GraphQL endpoints. See some usage examples.

Sitecore endpoints for layout data

There are several options for fetching layout information from Sitecore:

You can choose whether you want to use REST or GraphQL endpoints when creating your JSS application with the parameter --fetchWith REST or --fetchWith GraphQL.

Do you have some feedback for us?

If you have suggestions for improving this article,