We choose the style by who calls the API. REST suits most business APIs: resources with clear addresses, standard web caching and tools that every developer already knows.
GraphQL pays off when many different screens need different slices of connected data, as in a product with web and phone clients that would otherwise make many requests per view. Many systems use both, with REST for partners and integrations and GraphQL for the product's own interface.
A headless commerce project is a typical case, and a front end built as a Next.js site works with either style. We record the reason for each choice, so the decision stays clear later.












