-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Title: Implement Endpoint to Index a Project
Description:
Create an HTTP API endpoint to index a project by providing the project path and main function.
Acceptance Criteria:
- Implement a POST endpoint at
/index. - The endpoint should accept a JSON body with
pathandmainfields. - Return a success message upon successful indexing.
Request Example:
{
"path": "/path/to/your/project",
"main": "main.py"
}Response Example:
{
"status": "success",
"message": "Project indexed successfully."
}Tasks:
- Define the
/indexendpoint. - Validate the input fields (
pathandmain). - Implement the indexing functionality.
- Return a JSON response with the status and message.