class GdsApi::PublishingApiV2
def get_content_items(params)
- See: https://github.com/alphagov/publishing-api/blob/master/doc/api.md#get-v2content -
Parameters:
-
params
(Hash
) -- At minimum, this hash has to include the `document_type` of the content items we wish to see. All other optional keys are documented above.
def get_content_items(params) query = query_string(params) get_json("#{endpoint}/v2/content#{query}") end