Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak design of /.json #1674

Open
simonw opened this issue Mar 20, 2022 · 1 comment
Open

Tweak design of /.json #1674

simonw opened this issue Mar 20, 2022 · 1 comment

Comments

@simonw
Copy link
Owner

simonw commented Mar 20, 2022

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:

@simonw simonw added this to the Datasette 1.0 milestone Mar 20, 2022
@simonw simonw changed the title Twea design of /.json Tweak design of /.json Mar 20, 2022
@simonw
Copy link
Owner Author

simonw commented Mar 20, 2022

This will probably happen as part of turning this into an officially documented API that serves the template context for the homepage:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant