openpodcast / api

OpenPodcast API server
https://openpodcast.dev
8 stars 2 forks source link

Return metadata with JSON response #63

Closed mre closed 1 year ago

mre commented 1 year ago

Currently we return the raw data when the analytics endpoint is called. It would be helpful for troubleshooting to also include a metadata section.

Example:

{
  "meta": {
    // arbitrary metadata fields, e.g. date, state (success, error),...
  },
  "result": {
    // previous response goes here
  }
}
mre commented 1 year ago

Done in #66.