Repository navigation
Expand file tree
/
Copy pathscanoss-api.yaml
More file actions
111 lines (110 loc) · 3.2 KB
/
Copy pathscanoss-api.yaml
File metadata and controls
111 lines (110 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
openapi: 3.0.0
info:
version: '1.5'
title: SCANOSS API
description: This is the documentation for the SCANOSS API.
contact:
name: SCANOSS
url: https://scanoss.com
servers:
- url: https://osskb.org/api
description: OSS KB
paths:
/sbom/attribution:
post:
summary: Return the attribution notices for a list of given components in a
JSON SBOM format
operationId: scanattribution
tags:
- sbom
responses:
'200':
description: Attribution notices for a given list of components in SBOM.json
file
content:
text/plain:
schema:
type: string
'404':
description: File not found
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
description: The name of the file containing the SBOM.json
/file_contents/{MD5}:
get:
summary: Return the contents of the file with the given MD5 checksum.
operationId: ossfile
tags:
- file contents
responses:
'200':
description: Return contents of the file
content:
text/plain:
schema:
type: string
'404':
description: File not found
parameters:
- name: MD5
in: path
description: The MD5 checksum of the file
required: true
schema:
type: string
/scan/direct:
post:
summary: Direct scan. Performs a scan of an WFP file and returns the result.
operationId: scandirect
tags:
- scan
responses:
'200':
description: Scan successfully created
'400':
description: Invalid or missing file
'500':
description: The scanner component encountered an unexpected error
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
description: The name of the file to be scanned
project_id:
type: integer
description: The project identifier of the scan
assets:
type: string
description: The contents of the SBOM file in CycloneDX or SPDX
2.2 format
type:
type: string
enum:
- ignore
- identify
- blacklist
description: 'Optional parameter identify the type of scan. Default
value: IGNORE'
context:
type: string
description: Optional name of the component to take as context
db_name:
type: string
description: Optional name of the KB to do the scan
flags:
type: integer
description: Optional flags for the scanning engine
components:
schemas: {}