forked from Open-Source-Compliance/package-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
95 lines (95 loc) · 2.9 KB
/
Copy pathopenapi.yaml
File metadata and controls
95 lines (95 loc) · 2.9 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
openapi: 3.0.0
info:
title: OSSelot REST API
description: Retrieve SBOM from OSSelot in given format of given package at given version.
contact:
name: OSADL Office
email: office@osadl.org
license:
name: 'CC0-1.0'
url: 'https://creativecommons.org/publicdomain/zero/1.0/'
version: 1.0.0
servers:
- url: '{protocol}://rest.osselot.org'
variables:
protocol:
default: https
enum:
- http
- https
paths:
/json/{package}:
get:
summary: Return a group of OSSelot SBOMs in JSON format.
parameters:
- name: package
in: path
required: true
description: The name of the requested package.
schema:
type: string
responses:
'200':
description: All available SBOMs in JSON format of the given package.
content:
application/json:
schema:
$ref: 'https://rest.osselot.org/schemata/spdx-schemata.json'
examples:
jsonObject:
summary: A sample array of SPDX SBOMs of all available versions of libsm
externalValue: 'https://rest.osselot.org/json/libsm'
/json/{package}/{version}:
get:
summary: Return an OSSelot SBOM in JSON format.
parameters:
- name: package
in: path
required: true
description: The name of the requested package.
schema:
type: string
- name: version
in: path
required: true
description: The version of the requested package.
schema:
type: string
responses:
'200':
description: The SBOM in JSON format of the given package at given version.
content:
application/json:
schema:
$ref: 'https://rest.osselot.org/schemata/spdx-schema.json'
examples:
jsonObject:
summary: A sample SPDX SBOM of bash-5.1.16
externalValue: 'https://rest.osselot.org/json/bash/5.1.16'
/yaml/{package}/{version}:
get:
summary: Return an OSSelot SBOM in YAML format.
parameters:
- name: package
in: path
required: true
description: The name of the requested package.
schema:
type: string
- name: version
in: path
required: true
description: The version of the requested package.
schema:
type: string
responses:
'200':
description: The SBOM in YAML format of the given package at given version.
content:
application/yaml:
schema:
$ref: 'https://rest.osselot.org/schemata/spdx-schema.yaml'
examples:
jsonObject:
summary: A sample SPDX SBOM of bash-5.1.16
externalValue: 'https://rest.osselot.org/yaml/bash/5.1.16'