class GdsApi::PublishingApiV2

def get_content(content_id, params = {})

Other tags:
    See: https://github.com/alphagov/publishing-api/blob/master/doc/api.md#get-v2contentcontent_id -

Raises:
  • (HTTPNotFound) - when the content item is not found

Returns:
  • (GdsApi::Response) - a content item

Options Hash: (**params)
  • locale (String) -- The language, defaults to 'en' in publishing-api.

Parameters:
  • params (Hash) --
  • content_id (UUID) --
def get_content(content_id, params = {})
  get_json(content_url(content_id, params))
end