Skip to content

Commit 9882817

Browse files
committed
[csolution-rpc] Add ListMissingPacks method
1 parent d400740 commit 9882817

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

api/csolution-openapi.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,17 @@ paths:
230230
'200':
231231
description: OK
232232
content: {application/json: {schema: {$ref: '#/components/schemas/ConvertSolutionResponse'}}}
233+
/rpc/ListMissingPacks:
234+
post:
235+
summary: ListMissingPacks
236+
description: List missing (not installed) packs required by the active target-set
237+
tags: [/rpc]
238+
requestBody:
239+
content: {application/json: {schema: {$ref: '#/components/schemas/ListMissingPacksRequest'}}}
240+
responses:
241+
'200':
242+
description: OK
243+
content: {application/json: {schema: {$ref: '#/components/schemas/ListMissingPacksResponse'}}}
233244

234245
components:
235246
schemas:
@@ -1231,6 +1242,40 @@ components:
12311242
- properties:
12321243
result:
12331244
$ref: '#/components/schemas/ConvertSolutionResult'
1245+
ListMissingPacksRequest:
1246+
allOf:
1247+
- $ref: '#/x-jsonrpc-envelope-request-with-params'
1248+
- properties:
1249+
method:
1250+
type: string
1251+
const: ListMissingPacks
1252+
params:
1253+
type: object
1254+
properties:
1255+
solution:
1256+
type: string
1257+
description: Path to <solution>.csolution.yml
1258+
activeTarget:
1259+
type: string
1260+
description: Active target set in the format <target-type>[@<set>]
1261+
required:
1262+
- solution
1263+
- activeTarget
1264+
ListMissingPacksResult:
1265+
allOf:
1266+
- $ref: '#/components/schemas/SuccessResult'
1267+
- properties:
1268+
packs:
1269+
type: array
1270+
description: Missing pack identifiers
1271+
items:
1272+
type: string
1273+
ListMissingPacksResponse:
1274+
allOf:
1275+
- $ref: '#/x-jsonrpc-envelope-response'
1276+
- properties:
1277+
result:
1278+
$ref: '#/components/schemas/ListMissingPacksResult'
12341279

12351280
x-jsonrpc-envelope-request:
12361281
allOf:

0 commit comments

Comments
 (0)