This project demonstrates how to create REST endpoints by extending Keystone's express app and using the Query API to execute queries against the schema.
To run this project, clone the Keystone repository locally, run yarn
at the root of the repository then navigate to this directory and run:
yarn dev
This will start the Admin UI at localhost:3000.
You can use the Admin UI to create items in your database.
To run the seed data script, pass the --seed-data
flag when starting the app.
You can play with this example online in a web browser using the free codesandbox.io service. To launch this example, open the URL https://githubbox.com/keystonejs/keystone/tree/main/examples/rest-api. You can also fork this sandbox to make your own changes.