Superdesk Publisher Content (read only) API powered by GraphQL. It allows to fetch resources from the Superdesk Publisher.
- GraphQL support.
- Integrated GraphiQL to explore GraphQL API.
- Fetch Superdesk Publisher articles.
- Pagination is designed to work with the Relay Cursor Connections spec.
This project is using the following libraries:
- Rocket (web server)
- Diesel (database)
- Juniper (graphql)
- juniper-from-schema (graphql code generation)
- juniper-eager-loading (eager loading to avoid N+1 query bugs)
- Copy
.env.dist
to.env
. - Open
.env
file and set the value ofDATABASE_URL
to the URL of the Publisher's database (postgres). - Run
cargo run
- Then go to http://localhost:8000/graphiql
In .env
file:
PUBLISHER_CDN_URL
- CDN URL for images to properly generate URLs when the images are hosted on, for example AWS.