Parsing codebase
Last updated
Reminder: The github app we created earlier will need access to the repo.
Steps to Grant Access to Repositories
Go to your GitHub account.
Navigate to the GitHub app installation settings.
Select the app you created.
Update the repository access permission to repository you want to parse.
POST /parse
This endpoint allows you to parse the codebases that the GitHub app has access to. Ensure the app has the necessary permissions to access the repositories you want to parse. You can update the app's access permissions through the GitHub app installation settings.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
repo_name
string
username/repo-name
branch_name
string
feature
Response
{
"status": "success",
"message": "The project has been parsed successfully"
}{
"detail": "Invalid authentication from Firebase. Token expired, 1718882208 < 1718886290"
}{"detail":"Failed to get installation ID"}{"detail":"404 Client Error: Not Found for url"}Ensure that the Authorization header contains a valid token obtained during the login process.
The repo_name should be in the format username/repo-name , do not use a complete url.
The branch_name should be a valid branch in the specified repository.
Last updated