Skip to content

Instantly share code, notes, and snippets.

@martincik
Last active August 29, 2015 14:21
Show Gist options
  • Save martincik/6ef7352907903342d708 to your computer and use it in GitHub Desktop.
Save martincik/6ef7352907903342d708 to your computer and use it in GitHub Desktop.
Why do we have Product and ProductSummary? And why the ProductSummary has more fields than Product itself?
# CrunchBase API v3 - Product list and detail
I'm consuming the CrunchBase API v3.
I'm a bit of puzzled with the API returning Products.
URL: `https://api.crunchbase.com/v/3/products`
IMHO should return list of Products, but instead it returns list of `ProuctSummary`.
So you are returning something called `ProductSummary` instead of just `Product`?
Example:
URL: `https://api.crunchbase.com/v/3/products/:permalink`
Permalink: `msn-tech-support-phone-number-1-844-449-0455`
Product's fields: `permalink`, `api_path`, `web_path`, `name`,
`lifecycle_stage`, `short_description`, `launched_on`,
`launched_on_trust_code`, `closed_on`, `closed_on_trust_code`,
`homepage_url`, `created_at`, `updated_at`
ProductSummary fields: "permalink", "api_path", "web_path", "name",
"short_description", "owner_permalink", "owner_api_path", "owner_web_path",
"owner_name", "profile_image_url", "homepage_url", "facebook_url",
"twitter_url", ", "created_at", "updated_at"
Why Product has less attributes than ProductSummary? And why is it that Product summary has different attributes than the ProductSummary?
Can you help me understand?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment