mozilla-magnet / magnet-metadata-service

A service that returns metadata for given URLs
Other
8 stars 10 forks source link

Normalize returned data #14

Closed wilsonpage closed 8 years ago

wilsonpage commented 8 years ago

On the client I'm currently normalizing data into the following structure:

{
  url: String,
  type: String,
  title: String,
  description: String,
  image: String, // large poster image
  icon: String,
  embed: Object,
  data: Object // any type specific data
};

Does is make sense to do this on the service side?

arcturus commented 8 years ago

I think that was the original idea, also we created the endpoints with a 'raw' option to get everything from the server, or a filtered version by default.

wilsonpage commented 8 years ago

Fixed by #15