Public | Automated Build

Last pushed: a year ago
Short Description
Stockport Contentful API
Full Description

StockportContentApi

test gitlab

Pre-Requisites

On Windows:

Building the app

  • build and run tests: make build
  • build without the test: NO_TEST=1 make build

Running the app

  • You would need to set up the following environment variables to run the app:
    • HEALTHY_STOCKPORT_ACCESS_KEY
    • HEALTHY_STOCKPORT_SPACE
    • STOCKPORT_GOV_ACCESS_KEY
    • STOCKPORT_GOV_SPACE
  • make run

Content Model

Endpoints

The Busniess Id corresponds to a specific business area for which you are requesting content. The business ids currently supported are:

  • healthy-stockport
  • stockport-gov

Get all topics

/api/{businessId}/topic

Get a specific topic based on a topic slug

/api/{businessId}/topic/{topicSlug}

Get array of articles based on a topic slug

/api/{businessId}/topic/{topicSlug}/article

Get an article based on a article slug

/api/{businessId}/article/{articleSlug}
Docker Pull Command
Owner
smbcdigital

Comments (0)