home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 275092453

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association pull_request body repo type active_lock_reason performed_via_github_app reactions draft state_reason
275092453 MDU6SXNzdWUyNzUwOTI0NTM= 122 Redesign JSON output, ditch jsono, offer variants controlled by parameter instead 9599 closed 0     5 2017-11-18T16:52:28Z 2018-04-08T14:54:09Z 2018-04-08T14:54:09Z OWNER  

I want to support three variants for the rows output:

  • a list of lists, with a columns key saying what they are
  • a list of dictionaries
  • a single dictionary where the keys are the primary keys of the rows and the values are the row dictionaries themselves

I also want to make the various bits of metadata opt-in - so you don't get the SQL statement unless you ask for it.

These output options should be controlled by query string arguments.

I will set the .jsono URL to redirect to .json with the corresponding options.

107914493 issue    
{
    "url": "https://api.github.com/repos/simonw/datasette/issues/122/reactions",
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 1,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed

Links from other tables

  • 1 row from issues_id in issues_labels
  • 5 rows from issue in issue_comments
Powered by Datasette · Queries took 0.904ms · About: github-to-sqlite