visevol / GithubVisualisation

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

[Backend] Add a route that accepts an URL for a repository, and creates a record for that repository #9

Closed zergov closed 2 weeks ago

zergov commented 2 weeks ago

We need a route on the API that accepts the URL of a github repository, and creates a Repository record for that repository.

The route should react to POST /repositories?url=<remote_url>. The controller action should sanitize the remote url before writing to the database. For example: