openpodcast / api

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

Add support for date parameter for `analytics` queries #61

Closed mre closed 1 year ago

mre commented 1 year ago

Example: http://localhost/analytics/v1/podcastGender?date=2023-02-12

woolfg commented 1 year ago

I would suggest to add start/end as params to be more flexible. the user can then decide if just one day is needed or a range should be fetched from the API

mre commented 1 year ago

tackling this next

woolfg commented 1 year ago

could we use markdown/yaml/frontmatter/json to define the SQL queries and metadata? would be the advantage that we do not have to invent our own format?

mre commented 1 year ago

I think we can. Let's introduce the date parameters manually first and then consider rewriting it to dbt. I have a feeling that it will simplify things a lot.

mre commented 1 year ago

We decided that we'll try to use SQL variables, which are a nice tradeoff between customizability and fully native SQL syntax.

woolfg commented 1 year ago

in progress openpodcast/api#67