You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: swagger.yaml
+112-1Lines changed: 112 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,90 @@ paths:
82
82
description: Request unauthorized
83
83
'404':
84
84
description: Data not found
85
+
'/user-repo/scan':
86
+
post:
87
+
tags:
88
+
- Scan Services
89
+
operationId: f8a_scanner.api_v1.scan
90
+
summary: Scan an OSIO user repository. This will be called by the OSIO platform whenever a new repository is added to a space. The client request requires OSIO user token in the authorization header.
91
+
consumes:
92
+
- application/json
93
+
produces:
94
+
- application/json
95
+
parameters:
96
+
- in: body
97
+
name: repo
98
+
description: repository url
99
+
required: true
100
+
schema:
101
+
$ref: '#/definitions/UserRepoInput'
102
+
responses:
103
+
'200':
104
+
description: Repository scan initiated
105
+
'400':
106
+
description: Bad request from the client
107
+
'401':
108
+
description: Request unauthorized
109
+
'404':
110
+
description: Data not found
111
+
'500':
112
+
description: Internal server error
113
+
'/user-repo/notify':
114
+
post:
115
+
tags:
116
+
- Scan Services
117
+
operationId: f8a_scanner.api_v1.notify
118
+
summary: Call the notification service with the scan report.
119
+
consumes:
120
+
- application/json
121
+
produces:
122
+
- application/json
123
+
parameters:
124
+
- in: body
125
+
name: repo
126
+
description: List of ecosystem-package-version
127
+
required: true
128
+
schema:
129
+
$ref: '#/definitions/EPVList'
130
+
responses:
131
+
'200':
132
+
description: Notification service called
133
+
'400':
134
+
description: Bad request from the client
135
+
'401':
136
+
description: Request unauthorized
137
+
'404':
138
+
description: Data not found
139
+
'500':
140
+
description: Internal server error
141
+
'/user-repo/drop':
142
+
post:
143
+
tags:
144
+
- Scan Services
145
+
operationId: f8a_scanner.api_v1.drop
146
+
summary: Stop monitoring an OSIO user repository. This will be triggered by the platform whenever a codebase is removed from a space. The client request requires OSIO user token in the authorization header.
147
+
consumes:
148
+
- application/json
149
+
produces:
150
+
- application/json
151
+
parameters:
152
+
- in: body
153
+
name: repo
154
+
description: repository url and email id
155
+
required: true
156
+
schema:
157
+
$ref: '#/definitions/UserRepoInput'
158
+
responses:
159
+
'200':
160
+
description: Repository scan unsubscribed
161
+
'400':
162
+
description: Bad request from the client
163
+
'401':
164
+
description: Request unauthorized
165
+
'404':
166
+
description: Data not found
167
+
'500':
168
+
description: Internal server error
85
169
definitions:
86
170
RegisterResponse:
87
171
title: Response Data for Register Endpoint
@@ -141,4 +225,31 @@ definitions:
141
225
type: string
142
226
git-sha:
143
227
type: string
144
-
228
+
UserRepoInput:
229
+
title: User Repository Scan Inputs
230
+
description: Parameters to call user repository scan
231
+
properties:
232
+
git-url:
233
+
type: string
234
+
email-ids:
235
+
type: array
236
+
items:
237
+
type: string
238
+
EPV:
239
+
title: EPV
240
+
description: Describes EPV
241
+
properties:
242
+
ecosystem:
243
+
type: string
244
+
name:
245
+
type: string
246
+
version:
247
+
type: string
248
+
EPVList:
249
+
title: User Repository notify inputs
250
+
description: Parameters to call user repository notify
0 commit comments