class GdsApi::AssetManager

def whitehall_asset(legacy_url_path)

Raises:
  • (HTTPErrorResponse) - if the request returns an error

Returns:
  • (GdsApi::Response) - A response object containing the parsed JSON

Parameters:
  • legacy_url_path (String) -- The Whitehall asset identifier.
def whitehall_asset(legacy_url_path)
  get_json("#{base_url}/whitehall_assets/#{Addressable::URI.encode(legacy_url_path)}")
end