Skip to content

SuperdeskWebPublisher/publisher-content-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Publisher Content API

Superdesk Publisher Content (read only) API powered by GraphQL. It allows to fetch resources from the Superdesk Publisher.

Features:

  • 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:

Installation

  1. Copy .env.dist to .env.
  2. Open .env file and set the value of DATABASE_URL to the URL of the Publisher's database (postgres).
  3. Run cargo run
  4. Then go to http://localhost:8000/graphiql

Configuration

In .env file:

  • PUBLISHER_CDN_URL - CDN URL for images to properly generate URLs when the images are hosted on, for example AWS.