You can choose to use either a GraphQL endpoint or a REST endpoint to get data from the backend into the frontend.

One thing to note is the data from DummyJSON offers a bit more than lorem ipsum to look at 😅

Either option has four sections for the specific API being implemented, bother routes will implement

If you choose to use a REST endpoint, you'll find the information you need to create your own endpoints to fetch the required data.

REST

If you prefer to use a GraphQL endpoint, you'll find the required queries for all posts, single post, all pages, and single page in this section.

GraphQL

👇 Go back to the main page

CityJS 2023