This API sits between the collections-frontend and our content stores, merging and inflating collections content.
This is a Ruby on Rails app which combines content from three different content stores to provide a single, RESTful endpoint for a sub-topic (eg. Business tax: PAYE).
- alphagov/content-store - to fetch the content item for the sub-topic, including its curated list
- alphagov/govuk_content_api - to fetch all the content tagged with the sub-topic
- alphagov/rummager - to fetch a list of recently changed documents
bundle exec rails s
If you're running the app in the GOV.UK development environment, start the app on port 3084 in order to access it at http://collections-api.dev.gov.uk.
If you're using Bowler, you can start
the app with bowl collections-api
.
bundle exec rspec