Skip to content

Commit

Permalink
web_app: Fix inconsistent naming for project-summary endpoint (#1324)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Brough <[email protected]>
  • Loading branch information
nathaniel-brough authored Nov 23, 2023
1 parent e3a660b commit 8a96ae5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tools/web-fuzzing-introspection/app/webapp/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,8 @@ def api_project_summary():
'result': 'success',
'project': {
'name': project_name,
'runtime-coverage-data': project.coverage_data,
'introspector-data': project.introspector_data
'runtime_coverage_data': project.coverage_data,
'introspector_data': project.introspector_data
}
}

Expand Down
8 changes: 4 additions & 4 deletions tools/web-fuzzing-introspection/app/webapp/templates/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ <h3 id="api-project-summary">/api/project-summary?project={project_name}</h3>
<div class="card card-body">
<pre>{
"project": {
"introspector-data": {
"introspector_data": {
"annotated_cfg": [ {
"fuzzer_name": string,
"destinations": [ {
Expand All @@ -298,7 +298,7 @@ <h3 id="api-project-summary">/api/project-summary?project={project_name}</h3>
"src_file": string,
} ],
"branch_pairs": [ {
"blocked_runtime-coverage": integer,
"blocked_runtime_coverage": integer,
"function_name": string,
"project": string,
} ],
Expand All @@ -310,7 +310,7 @@ <h3 id="api-project-summary">/api/project-summary?project={project_name}</h3>
"static_reachability": number
},
"name": string,
"runtime-coverage-data": {
"runtime_coverage_data": {
"coverage_url": string,
"line_coverage": {
"count": integer,
Expand Down Expand Up @@ -394,7 +394,7 @@ <h3 id="api-project-summary">/api/project-summary?project={project_name}</h3>
"static_reachability": 63.40996168582376
},
"name": "json-c",
"runtime-coverage-data": {
"runtime_coverage_data": {
"coverage_url": "https://storage.googleapis.com/oss-fuzz-coverage/json-c/reports/20231120/linux/report.html",
"line_coverage": {
"count": 3150,
Expand Down

0 comments on commit 8a96ae5

Please sign in to comment.