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:
We shouldn't do anything if the remote url is invalid
We shouldn't do anything if the url is from a domain we don't support
We shouldn't do anything if the repository doesn't exist.
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: