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
path and main fields.
- 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:
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:
/index.pathandmainfields.Request Example:
{ "path": "/path/to/your/project", "main": "main.py" }Response Example:
{ "status": "success", "message": "Project indexed successfully." }Tasks:
/indexendpoint.pathandmain).