class GdsApi::PublishingApiV2
def lookup_content_ids(base_paths:)
- See: https://github.com/alphagov/publishing-api/blob/master/doc/api.md#post-lookup-by-base-path -
Returns:
-
(Hash)
- a hash, keyed by `base_path` with `content_id` as value
Parameters:
-
base_paths
(Array
) --
def lookup_content_ids(base_paths:) response = post_json!("#{endpoint}/lookup-by-base-path", base_paths: base_paths) response.to_hash end