class GdsApi::PublishingApiV2
def lookup_content_id(base_path:)
- See: https://github.com/alphagov/publishing-api/blob/master/doc/api.md#post-lookup-by-base-path -
Returns:
-
(UUID)
- the `content_id` for the `base_path`
Parameters:
-
base_path
(String
) --
def lookup_content_id(base_path:) lookups = lookup_content_ids(base_paths: [base_path]) lookups[base_path] end