-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Is your proposal related to a problem?
In order to trigger the cloning of the template repository, the frontend must make a POST request with the needed auth information to the HTTP route endpoint on the Github App.
Dependent on #134
Describe the solution you'd like
An HTTP Route should be created so that an endpoint is available for a POST request to be made from the frontend with auth information. A POST request that will be called from the frontend when a user chooses to begin a course. The user's Github authentication information along with the course details (template repo name) will be sent in the request to the HTTP route endpoint on the Github App.
camp.dev --> POST request with user information --> Github App HTTP route endpoint
After the MVP is complete, consider adding Authentication headers for secure transmission of information
Describe alternatives you've considered
A considered alternative could be to listen for a webhook event from Hasura on the Github App HTTP route instead of a POST request from the frontend.
Additional context
camp.dev --> POST Request --> Github App HTTP route endpoint --> clone repository with POST request to Github API --> template repository created on student account
