visevol / GithubVisualisation

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

[Backend] Add the FilesController #52

Closed zergov closed 13 hours ago

zergov commented 13 hours ago

Part of https://github.com/visevol/GithubVisualisation/issues/41

Add a FilesController.

This controller returns information about a file on a repository. Right now, it only returns the following information:

Example:

GET /repositories/123/files/head/activejob/lib/active_job.rb

{
  filepath: "activejob/lib/active_job.rb",
  commits_count: 75,
  main_contributor: {
    author: "Ryuta Kamizono",
    commits_count: 7
  }
}