class GdsApi::ContentApi
def tag(tag, tag_type=nil)
def tag(tag, tag_type=nil) if tag_type.nil? raise "Requests for tags without a tag_type are no longer supported. You probably want a tag_type of 'section'. See https://github.com/alphagov/govuk_content_api/blob/f4c0102a1ae4970be6a440707b89798442f768b9/govuk_content_api.rb#L241-L250" end url = [base_url, "tags", CGI.escape(tag_type), CGI.escape(tag)].join("/") + ".json" get_json(url) end