zrcadlo / undercurrent_api

The Backend of your Dreams: API for dream recording app
0 stars 0 forks source link

All dreams, statistics, search endpoints #9

Closed lfborjas closed 4 years ago

lfborjas commented 4 years ago

(See notes for querying in #6 )

Notes on indices:

Notes on pagination:

Notes from Tina:

- Get dreams for everyone
    - Always non-private dreams
    - Include optional ability to pass dream property (lucid, nightmare, recurring, emotion, keyword, etc) OR user property (country, zodiac sign, gender you identify as), OR date range OR most recent X dreams
    - Use cases: setting the color of the sphere, viewing most recent dreams, getting the most recent dreams dream property
- Get statistics we’re pulling and usually calculating on the front end… (Luis: maybe these should be cached for a while?)
    - Most common words / topics - day / week / month / year
        - Lucid percent
        - Nightmare percent
        - Total dreams
        - Most common emotion
    - Most common emotions -  day / week / month / year
- Search public dreams