Skip to content

Index a Project via HTTP API #11

@farhoud

Description

@farhoud

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:

  • Define the /index endpoint.
  • Validate the input fields (path and main).
  • Implement the indexing functionality.
  • Return a JSON response with the status and message.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions