Skip to content

Instantly share code, notes, and snippets.

@sihugh
sihugh / GOV.UK API cheat sheet.md
Last active October 3, 2024 13:38
This is a quick start for working with GOV.UK's APIs
# this should provide you with 20 random paths from each of the rendering apps on GOV.UK
#
# ssh content-store-1.integration
# govuk_app_console content-store
require 'yaml'
paths = []
ContentItem.distinct(:rendering_app).each do |rendering_app|
coll = ContentItem.where(rendering_app: rendering_app)