datasette
datasette copied to clipboard
Tweak design of /.json
https://latest.datasette.io/.json
Currently:
{
"_memory": {
"name": "_memory",
"hash": null,
"color": "a6c7b9",
"path": "/_memory",
"tables_and_views_truncated": [],
"tables_and_views_more": false,
"tables_count": 0,
"table_rows_sum": 0,
"show_table_row_counts": false,
"hidden_table_rows_sum": 0,
"hidden_tables_count": 0,
"views_count": 0,
"private": false
},
"fixtures": {
"name": "fixtures",
"hash": "645005884646eb941c89997fbd1c0dd6be517cb1b493df9816ae497c0c5afbaa",
"color": "645005",
"path": "/fixtures",
"tables_and_views_truncated": [
{
"name": "compound_three_primary_keys",
"columns": [
"pk1",
"pk2",
"pk3",
"content"
],
"primary_keys": [
"pk1",
"pk2",
"pk3"
],
"count": 1001,
"hidden": false,
"fts_table": null,
"num_relationships_for_sorting": 0,
"private": false
},
As-of this issue the "path"
key is confusing, it doesn't match what https://latest.datasette.io/-/databases returns:
- #1668
This will probably happen as part of turning this into an officially documented API that serves the template context for the homepage:
- #1510