From 8a96ae5e2fa2410822f59d20a884300999f2c91e Mon Sep 17 00:00:00 2001 From: Nathaniel Brough Date: Thu, 23 Nov 2023 14:44:28 -0800 Subject: [PATCH] web_app: Fix inconsistent naming for project-summary endpoint (#1324) Signed-off-by: Nathaniel Brough --- tools/web-fuzzing-introspection/app/webapp/routes.py | 4 ++-- .../app/webapp/templates/api.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/web-fuzzing-introspection/app/webapp/routes.py b/tools/web-fuzzing-introspection/app/webapp/routes.py index c2db7bf80..4dee61278 100644 --- a/tools/web-fuzzing-introspection/app/webapp/routes.py +++ b/tools/web-fuzzing-introspection/app/webapp/routes.py @@ -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 } } diff --git a/tools/web-fuzzing-introspection/app/webapp/templates/api.html b/tools/web-fuzzing-introspection/app/webapp/templates/api.html index 6e69dc99b..f809498e7 100644 --- a/tools/web-fuzzing-introspection/app/webapp/templates/api.html +++ b/tools/web-fuzzing-introspection/app/webapp/templates/api.html @@ -282,7 +282,7 @@

/api/project-summary?project={project_name}

{
   "project": {
-    "introspector-data": {
+    "introspector_data": {
     "annotated_cfg": [ {
       "fuzzer_name": string,
       "destinations": [ {
@@ -298,7 +298,7 @@ 

/api/project-summary?project={project_name}

"src_file": string, } ], "branch_pairs": [ { - "blocked_runtime-coverage": integer, + "blocked_runtime_coverage": integer, "function_name": string, "project": string, } ], @@ -310,7 +310,7 @@

/api/project-summary?project={project_name}

"static_reachability": number }, "name": string, - "runtime-coverage-data": { + "runtime_coverage_data": { "coverage_url": string, "line_coverage": { "count": integer, @@ -394,7 +394,7 @@

/api/project-summary?project={project_name}

"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,