-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrest-api-examples.http
More file actions
59 lines (47 loc) · 1.48 KB
/
rest-api-examples.http
File metadata and controls
59 lines (47 loc) · 1.48 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
# Use Visual Code IDE (https://code.visualstudio.com) with REST Client plugin (https://marketplace.visualstudio.com/items?itemName=humao.rest-client) to execute it.
@API_KEY=<your-api-key>
### Get all vendors
GET https://api.versio.io/gov/1.0/vendors
Content-Type: application/json
Authorization: apiToken {{API_KEY}}
### Get all products of Apache
GET https://api.versio.io/gov/1.0/vendors/Apache/products
Content-Type: application/json
Authorization: apiToken {{API_KEY}}
### Get data about Tomcat product
GET https://api.versio.io/gov/1.0/vendors/Apache/products/Tomcat
Content-Type: application/json
Authorization: apiToken {{API_KEY}}
### Get all versions of Apache Tomcat
GET https://api.versio.io/gov/1.0/vendors/Apache/products/Tomcat/versions
Content-Type: application/json
Authorization: apiToken {{API_KEY}}
### Verify lifecycle and security state of Apache Tomcat version 10.0.22
GET https://api.versio.io/gov/1.0/vendors/Apache/products/Tomcat/versions/10.0.22
Content-Type: application/json
Authorization: apiToken {{API_KEY}}
### Verify lifecycle and security state for multiple product versions
POST https://api.versio.io/gov/1.0/versions
Content-Type: application/json
Authorization: apiToken {{API_KEY}}
{
"Microsoft": {
"Windows 11 Pro": {
"10.0.22000.795": {}
},
"Windows 11": {
"10.0.22621.521": {},
"10.0.22621.963": {}
}
},
"Samba": {
"Samba": {
"4.13.17": {}
}
},
"GitLab": {
"GitLab": {
"15.7.0": {}
}
}
}