forked from eclipse-apoapsis/ort-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
repositories.http
63 lines (51 loc) · 1.54 KB
/
repositories.http
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
### Get all Repositories of a Product
GET {{host}}/products/1/repositories
Authorization: Bearer {{$auth.token("keycloak")}}
### Get a single Repository
GET {{host}}/repositories/1
Authorization: Bearer {{$auth.token("keycloak")}}
### Create a Repository
POST {{host}}/products/1/repositories
Authorization: Bearer {{$auth.token("keycloak")}}
Content-Type: application/json
{
"type": "GIT",
"url": "https://github.com/eclipse-apoapsis/ort-server.git"
}
### Get all Runs for a Repository
GET {{host}}/repositories/1/runs
Authorization: Bearer {{$auth.token("keycloak")}}
### Get latest Run
GET {{host}}/repositories/1/runs?limit=1&sort=-index
Authorization: Bearer {{$auth.token("keycloak")}}
### Start a new Run
POST {{host}}/repositories/1/runs
Authorization: Bearer {{$auth.token("keycloak")}}
Content-Type: application/json
{
"revision": "main",
"jobConfigs": {
"analyzer": {},
"advisor": {},
"scanner": {},
"evaluator": {},
"reporter": {},
"notifier": {}
}
}
> {%
client.global.set("runId", response.body.id);
%}
### Get latest Run
GET {{host}}/repositories/1/runs?limit=1&sort=-index
Authorization: Bearer {{$auth.token("keycloak")}}
> {%
client.global.set("runId", response.body.data[0].id);
client.global.set("runIndex", response.body.data[0].index);
%}
### Get details of a Run
GET {{host}}/repositories/1/runs/{{runIndex}}
Authorization: Bearer {{$auth.token("keycloak")}}
### Get WebApp Report for Run
GET {{host}}/runs/{{runId}}/reporter/scan-report-web-app.html
Authorization: Bearer {{$auth.token("keycloak")}}