Skip to content

Commit 8880d50

Browse files
committed
Update README to correct API endpoint paths for GitHub repository and issue answering
1 parent 01b766d commit 8880d50

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,22 +108,22 @@ governed by a state machine to ensure code quality through automated reviews, bu
108108
109109
You can upload a GitHub repository to Prometheus using the following API endpoint:
110110
111-
- **Endpoint:** `GET /github/`
111+
- **Endpoint:** `GET /repository/github/`
112112
- **Query Parameter:** `https_url` (the HTTPS URL of your GitHub repository)
113113
114114
**Example using `curl`:**
115115
116116
```bash
117-
curl -X GET "http://localhost:9002/github/?https_url=https://github.com/your/repo.git"
117+
curl -X GET "http://localhost:9002/repository/github/?https_url=https://github.com/your/repo.git"
118118
```
119119
120120
This will clone the specified repository (defaulting to the latest commit on the main branch) into Prometheus.
121121
122122
7. #### 📝 Answer Repository Issues
123123
124-
You can ask Prometheus to analyze and answer a specific issue in your codebase using the `/answer/` API endpoint.
124+
You can ask Prometheus to analyze and answer a specific issue in your codebase using the `/issue/answer/` API endpoint.
125125
126-
- **Endpoint:** `POST /answer/`
126+
- **Endpoint:** `POST /issue/answer/`
127127
- **Request Body:** JSON object matching the `IssueRequest` schema (see [API Documents](http://localhost:9002/docs#/issue/answer_issue_issue_answer__post))
128128
- **Response:** Returns the generated patch, test/build results, and a summary response.
129129

0 commit comments

Comments
 (0)