Skip to content

Instantly share code, notes, and snippets.

@josephbona
Last active November 16, 2017 22:29
Show Gist options
  • Save josephbona/3131d46cc108b9be37304d40fd1a3187 to your computer and use it in GitHub Desktop.
Save josephbona/3131d46cc108b9be37304d40fd1a3187 to your computer and use it in GitHub Desktop.
Fleshing out subbrands endpoints

Subbrands API

GET /brands

Returns a list of brands.

GET /brands/featured

Returns an object. stories key will be an array of 3 most recent brand stories for the featured carousel on iOS all brands screen.

GET /brands/:id

Returns information about a brand like logo, description, subbrand pages, social links, etc. Returns the payload for the about page as well. Needs to return primary and secondary color codes for iOS. Also returns array of products from Shopify.

GET /brands/:id/stories?type={podcast|barstool_original}

Returns brand stories. Filter by story type.

GET /brands/:id/playlists?type={podcast|barstool_original}

Return brand playlists. Filter by type

GET /brands/:id/playlists/:id

Return items in a playlist.

GET /brands/:id/related

Returns related brands

@josephbona
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment