Skip to content

[Feature Request] POST Request from Frontend to Github App #135

Description

@emsesc

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

image

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions