@@ -33,7 +33,7 @@ export function APIAnalysisPage() {
3333 < span className = "text-xs font-mono font-bold px-2 py-1 rounded text-green-400 bg-green-500/10" >
3434 GET
3535 </ span >
36- < code className = "text-sm text-gray-300" > /api/repos/{ '{repo_id}' } /dependencies</ code >
36+ < code className = "text-sm text-gray-300" > /api/v1/ repos/{ '{repo_id}' } /dependencies</ code >
3737 </ div >
3838
3939 < p className = "text-gray-300 mb-4" >
@@ -73,44 +73,30 @@ export function APIAnalysisPage() {
7373 < h4 className = "text-sm font-semibold text-gray-400 uppercase tracking-wider mt-6 mb-2" > Example</ h4 >
7474 < DocsCodeBlock language = "bash" >
7575{ `curl -H "Authorization: Bearer YOUR_API_KEY" \\
76- http://localhost:8000/api/repos/repo_abc123/dependencies` }
76+ http://localhost:8000/api/v1/ repos/repo_abc123/dependencies` }
7777 </ DocsCodeBlock >
7878
7979 { /* Impact Analysis */ }
8080 < h2 id = "impact" className = "text-2xl font-semibold text-white mt-12 mb-4" > Impact Analysis</ h2 >
8181
8282 < div className = "flex items-center gap-3 p-3 bg-white/[0.02] border border-white/10 rounded-lg mb-4" >
83- < span className = "text-xs font-mono font-bold px-2 py-1 rounded text-green -400 bg-green -500/10" >
84- GET
83+ < span className = "text-xs font-mono font-bold px-2 py-1 rounded text-blue -400 bg-blue -500/10" >
84+ POST
8585 </ span >
86- < code className = "text-sm text-gray-300" > /api/repos/{ '{repo_id}' } /impact</ code >
86+ < code className = "text-sm text-gray-300" > /api/v1/ repos/{ '{repo_id}' } /impact</ code >
8787 </ div >
8888
8989 < p className = "text-gray-300 mb-4" >
9090 Analyze the impact of changing a specific file.
9191 </ p >
9292
93- < h4 className = "text-sm font-semibold text-gray-400 uppercase tracking-wider mt-6 mb-2" > Query Parameters</ h4 >
94- < div className = "overflow-x-auto mb-4" >
95- < table className = "w-full text-sm" >
96- < thead >
97- < tr className = "border-b border-white/10" >
98- < th className = "text-left py-2 text-gray-400 font-medium" > Parameter</ th >
99- < th className = "text-left py-2 text-gray-400 font-medium" > Type</ th >
100- < th className = "text-left py-2 text-gray-400 font-medium" > Required</ th >
101- < th className = "text-left py-2 text-gray-400 font-medium" > Description</ th >
102- </ tr >
103- </ thead >
104- < tbody className = "text-gray-300" >
105- < tr >
106- < td className = "py-2 font-mono text-blue-400" > file</ td >
107- < td className = "py-2 font-mono text-xs" > string</ td >
108- < td className = "py-2" > < span className = "text-amber-400" > Yes</ span > </ td >
109- < td className = "py-2" > Path to the file to analyze</ td >
110- </ tr >
111- </ tbody >
112- </ table >
113- </ div >
93+ < h4 className = "text-sm font-semibold text-gray-400 uppercase tracking-wider mt-6 mb-2" > Request Body</ h4 >
94+ < DocsCodeBlock language = "json" >
95+ { `{
96+ "repo_id": "repo_abc123",
97+ "file_path": "src/auth/middleware.py"
98+ }` }
99+ </ DocsCodeBlock >
114100
115101 < h4 className = "text-sm font-semibold text-gray-400 uppercase tracking-wider mt-6 mb-2" > Response</ h4 >
116102 < DocsCodeBlock language = "json" >
@@ -141,8 +127,11 @@ export function APIAnalysisPage() {
141127
142128 < h4 className = "text-sm font-semibold text-gray-400 uppercase tracking-wider mt-6 mb-2" > Example</ h4 >
143129 < DocsCodeBlock language = "bash" >
144- { `curl -H "Authorization: Bearer YOUR_API_KEY" \\
145- "http://localhost:8000/api/repos/repo_abc123/impact?file=src/auth/middleware.py"` }
130+ { `curl -X POST \\
131+ -H "Authorization: Bearer YOUR_API_KEY" \\
132+ -H "Content-Type: application/json" \\
133+ -d '{"repo_id": "repo_abc123", "file_path": "src/auth/middleware.py"}' \\
134+ http://localhost:8000/api/v1/repos/repo_abc123/impact` }
146135 </ DocsCodeBlock >
147136
148137 { /* Code Style */ }
@@ -152,7 +141,7 @@ export function APIAnalysisPage() {
152141 < span className = "text-xs font-mono font-bold px-2 py-1 rounded text-green-400 bg-green-500/10" >
153142 GET
154143 </ span >
155- < code className = "text-sm text-gray-300" > /api/repos/{ '{repo_id}' } /style</ code >
144+ < code className = "text-sm text-gray-300" > /api/v1/ repos/{ '{repo_id}' } /style-analysis </ code >
156145 </ div >
157146
158147 < p className = "text-gray-300 mb-4" >
@@ -191,7 +180,7 @@ export function APIAnalysisPage() {
191180 < span className = "text-xs font-mono font-bold px-2 py-1 rounded text-green-400 bg-green-500/10" >
192181 GET
193182 </ span >
194- < code className = "text-sm text-gray-300" > /api/repos/{ '{repo_id}' } /insights</ code >
183+ < code className = "text-sm text-gray-300" > /api/v1/ repos/{ '{repo_id}' } /insights</ code >
195184 </ div >
196185
197186 < p className = "text-gray-300 mb-4" >
@@ -229,7 +218,7 @@ export function APIAnalysisPage() {
229218 < h4 className = "text-sm font-semibold text-gray-400 uppercase tracking-wider mt-6 mb-2" > Example</ h4 >
230219 < DocsCodeBlock language = "bash" >
231220{ `curl -H "Authorization: Bearer YOUR_API_KEY" \\
232- http://localhost:8000/api/repos/repo_abc123/insights` }
221+ http://localhost:8000/api/v1/ repos/repo_abc123/insights` }
233222 </ DocsCodeBlock >
234223
235224 < DocsPagination
0 commit comments