Digital-Defiance / OpenBook

Enhance organizational transparency by indexing structured Markdown files into Excel & API queryable views, enabling detailed tracking such as membership or grant usage through transactional records, while maintaining data in a version-controlled, queryable system.
MIT License
0 stars 1 forks source link

feature: Support multiple views #6

Open JessicaMulein opened 11 months ago

JessicaMulein commented 11 months ago

Leave the current view.json as the default view, support additional views

consider x.view.json and then be reachable on the API as /views/table/x with the excel then being in /views/table/x/excel

other possibility is modifying the view.json structure to support multiple views within it. Currently view columns are under columns property- but could just as easily be nested under a separate property keyed by the view name with the columns to be queried underneath.

I think I like having fewer files, so extending view.json might be my preferred approach.