Skip to content

Commit f049874

Browse files
committed
Update API paths to use 'sha256' instead of 'report_id' for report retrieval and metadata endpoints
1 parent 7778587 commit f049874

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

tip-v2-build/static/openapi.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ paths:
6666
'*/*':
6767
schema:
6868
type: object
69-
/api/reports/file/{report_id}:
69+
/api/reports/file/{sha256}:
7070
get:
7171
tags:
7272
- Report
7373
summary: Get analysis report
7474
operationId: getReport
7575
parameters:
76-
- name: report_id
76+
- name: sha256
7777
in: path
7878
required: true
7979
schema:
@@ -85,14 +85,14 @@ paths:
8585
'*/*':
8686
schema:
8787
type: object
88-
/api/reports/file/{report_id}/metadata:
88+
/api/reports/file/{sha256}/metadata:
8989
get:
9090
tags:
9191
- Report
9292
operationId: getMetadata
9393
summary: Get file metadata
9494
parameters:
95-
- name: report_id
95+
- name: sha256
9696
in: path
9797
required: true
9898
schema:
@@ -104,14 +104,14 @@ paths:
104104
'*/*':
105105
schema:
106106
type: object
107-
/api/reports/file/{report_id}/exists:
107+
/api/reports/file/{sha256}/exists:
108108
get:
109109
tags:
110110
- Report
111111
operationId: reportExists
112112
summary: Check if a file exists
113113
parameters:
114-
- name: report_id
114+
- name: sha256
115115
in: path
116116
required: true
117117
schema:
@@ -129,14 +129,14 @@ paths:
129129
'*/*':
130130
schema:
131131
type: object
132-
/api/reports/file/{report_id}/classification:
132+
/api/reports/file/{sha256}/classification:
133133
get:
134134
tags:
135135
- Report
136136
operationId: getClassification
137137
summary: Get analysis classification
138138
parameters:
139-
- name: report_id
139+
- name: sha256
140140
in: path
141141
required: true
142142
schema:

tip-v2/openapi.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ paths:
6666
'*/*':
6767
schema:
6868
type: object
69-
/api/reports/file/{report_id}:
69+
/api/reports/file/{sha256}:
7070
get:
7171
tags:
7272
- Report
7373
summary: Get analysis report
7474
operationId: getReport
7575
parameters:
76-
- name: report_id
76+
- name: sha256
7777
in: path
7878
required: true
7979
schema:
@@ -85,14 +85,14 @@ paths:
8585
'*/*':
8686
schema:
8787
type: object
88-
/api/reports/file/{report_id}/metadata:
88+
/api/reports/file/{sha256}/metadata:
8989
get:
9090
tags:
9191
- Report
9292
operationId: getMetadata
9393
summary: Get file metadata
9494
parameters:
95-
- name: report_id
95+
- name: sha256
9696
in: path
9797
required: true
9898
schema:
@@ -104,14 +104,14 @@ paths:
104104
'*/*':
105105
schema:
106106
type: object
107-
/api/reports/file/{report_id}/exists:
107+
/api/reports/file/{sha256}/exists:
108108
get:
109109
tags:
110110
- Report
111111
operationId: reportExists
112112
summary: Check if a file exists
113113
parameters:
114-
- name: report_id
114+
- name: sha256
115115
in: path
116116
required: true
117117
schema:
@@ -129,14 +129,14 @@ paths:
129129
'*/*':
130130
schema:
131131
type: object
132-
/api/reports/file/{report_id}/classification:
132+
/api/reports/file/{sha256}/classification:
133133
get:
134134
tags:
135135
- Report
136136
operationId: getClassification
137137
summary: Get analysis classification
138138
parameters:
139-
- name: report_id
139+
- name: sha256
140140
in: path
141141
required: true
142142
schema:

0 commit comments

Comments
 (0)