Yashasv-Prajapati / Docify

5 stars 2 forks source link

Added route for generating code coverage #96

Closed nishad-dhuri-05 closed 3 months ago

nishad-dhuri-05 commented 3 months ago

Made some minor modifications to the code coverage code for python.

linear[bot] commented 3 months ago
CS3-107 API handler for Code Coverage

Create an API handler in `client/app/api/code_coverage/route.ts` Assume you get information about the **type of Project (Java/Python) and Project ID in the request body** of your POST handler, now the API starts the Docker container by using the access token the repository URL from the database for the Project ID you have to clone the repository and then generating UML for this repository based on the type of Project. Once the Docker container finishes it's execution, simply redirect to the `/code_coverage/page.tsx` (may change this route afterwards).