File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -330,10 +330,10 @@ def process_list_commits():
330
330
return jsonify (response ), 200
331
331
332
332
333
- @app .route ('/repo_stats ' , methods = ['POST' ])
334
- def repo_stats ():
333
+ @app .route ('/repo_info ' , methods = ['POST' ])
334
+ def repo_info ():
335
335
"""
336
- Endpoint to retrieve statistics about a specific repository.
336
+ Endpoint to retrieve information about a specific repository.
337
337
338
338
Expected JSON payload:
339
339
{
@@ -343,7 +343,7 @@ def repo_stats():
343
343
Returns:
344
344
JSON: A response containing the status and graph statistics (node and edge counts).
345
345
- 'status': 'success' if successful, or an error message.
346
- - 'stats ': A dictionary with the node and edge counts if the request is successful.
346
+ - 'info ': A dictionary with the node and edge counts if the request is successful.
347
347
"""
348
348
349
349
# Get JSON data from the request
@@ -363,7 +363,7 @@ def repo_stats():
363
363
# Create a response
364
364
response = {
365
365
'status' : 'success' ,
366
- 'stats ' : stats
366
+ 'info ' : stats
367
367
}
368
368
369
369
return jsonify (response ), 200
You can’t perform that action at this time.
0 commit comments