Skip to content

Commit 1dc8274

Browse files
committed
Add endpoint to retrieve malware configuration by SHA256
1 parent fcdbf1a commit 1dc8274

2 files changed

Lines changed: 62 additions & 2 deletions

File tree

tip-v2-build/static/openapi.yaml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,37 @@ paths:
154154
'*/*':
155155
schema:
156156
type: object
157-
157+
/api/reports/file/{sha256}/config:
158+
get:
159+
tags:
160+
- Report
161+
operationId: getMalConfig
162+
summary: Get Malware Config
163+
parameters:
164+
- name: sha256
165+
in: path
166+
required: true
167+
schema:
168+
type: string
169+
- name: Authorization
170+
in: header
171+
required: true
172+
schema:
173+
type: string
174+
default: "apikey"
175+
responses:
176+
"404":
177+
description: NOT FOUND
178+
content:
179+
'*/*':
180+
schema:
181+
type: object
182+
"200":
183+
description: OK
184+
content:
185+
'*/*':
186+
schema:
187+
type: object
158188
components:
159189
schemas:
160190
FileUploadDTO:

tip-v2/openapi.yaml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,37 @@ paths:
154154
'*/*':
155155
schema:
156156
type: object
157-
157+
/api/reports/file/{sha256}/config:
158+
get:
159+
tags:
160+
- Report
161+
operationId: getMalConfig
162+
summary: Get Malware Config
163+
parameters:
164+
- name: sha256
165+
in: path
166+
required: true
167+
schema:
168+
type: string
169+
- name: Authorization
170+
in: header
171+
required: true
172+
schema:
173+
type: string
174+
default: "apikey"
175+
responses:
176+
"404":
177+
description: NOT FOUND
178+
content:
179+
'*/*':
180+
schema:
181+
type: object
182+
"200":
183+
description: OK
184+
content:
185+
'*/*':
186+
schema:
187+
type: object
158188
components:
159189
schemas:
160190
FileUploadDTO:

0 commit comments

Comments
 (0)