alphagov/govuk_content_api — pull request #7 by jamiecobbett (2012-09-03 17:41:32+00:00)
Title: Web urls

We need to provide www.gov.uk addresses in the web UI, so rather than munge the API URL (aka "ID") in every content API client, let's supply it in the API.

It has the bonus that it points you at the web UI for any resource if you're browsing. The only obvious alternative to passing two URLs is passing the slug around, but that loses this nicety.

There are some edge cases in rummager where it needs the slug of sections/subsections, for which we will munge.