class GdsApi::PublishingApi

def get_host_content_for_content_id(content_id, params = {})

Other tags:
    See: https://github.com/alphagov/publishing-api/blob/main/docs/api.md#get-v2contentcontent_idhost-content -

Returns:
  • (GdsApi::Response) - A response containing a summarised list of the content items which embed the target.

Parameters:
  • params (Hash) --
  • content_id (UUID) --
def get_host_content_for_content_id(content_id, params = {})
  query = query_string(params)
  get_json("#{endpoint}/v2/content/#{content_id}/host-content#{query}")
end