Yashasv-Prajapati / Docify

5 stars 2 forks source link

modified the api handler for generating uml #104

Closed ashima-09 closed 3 months ago

ashima-09 commented 3 months ago

After creation of the appropriate bash scripts, the command needs to be modified. Currently a dummy command is present.

linear[bot] commented 3 months ago
CS3-106 API handler for Generate UML Script

Create an API handler in `client/app/api/uml/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 `/uml/page.tsx`