The register of all content created by publishing applications.
The content register stores following attributes of all content that is either on GOV.UK already, or is being written for it:
content_idtitleformat- optionally,
base_path
Publishing applications can create an entry for content using its content_id
to make them available for cross-linking. To add or update an entry in the
content register, make a PUT request:
curl https://content-register.production.alphagov.co.uk/entry/<content_id> \
-X PUT \
-H 'Content-type: application/json' \
-d '<entry_json>'where <content_id> is a UUID, to uniquely identify a piece of content,
and is assigned by a publishing application, and <entry_json>
is its JSON representation as outlined in doc/input_example.json.
To retrieve entries from the content register, make a GET request:
curl https://content-register.production.alphagov.co.uk/entries?format=news-articleExamples of the JSON response can be found in doc/output_example.json.
This app has a worker to listen to messages that content-store publishes to the published_documents exchange on RabbitMQ. To start the worker in development run
bundle exec rake message_queue:consumer