visevol / GithubVisualisation

PFE028 Été 2024
MIT License
0 stars 1 forks source link

[Backend] Add an endpoint to get stats about commits over time. #50

Open zergov opened 16 hours ago

zergov commented 16 hours ago

From: https://github.com/godDeveloppeur/visualgraphgithub/blob/master/documentation/chart_data.md#change-scope-in-the-repository

Key variables:

The endpoint should return something like:

GET /repositories/123/commits/stats/commits_over_time

[
  { 
    date: "2010-01-01", 
    modified_lines: 49, 
    modified_files: 13,
    categories: "DOCUMENTATION"     # <--- not sure how to do this yet, but yolo  
  }
]