Skip to content

Commit 0a47fb9

Browse files
authored
GetVariables method to obtain context variables
1 parent 0662e8c commit 0a47fb9

1 file changed

Lines changed: 43 additions & 5 deletions

File tree

api/csolution-openapi.yml

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.1.0
22
info:
33
title: csolution rpc
4-
version: 0.0.6
4+
version: 0.0.7
55
description: Specification of remote procedure call methods for CMSIS csolution integration
66
license:
77
name: Apache 2.0
@@ -109,8 +109,6 @@ paths:
109109
'200':
110110
description: OK
111111
content: {application/json: {schema: {$ref: '#/components/schemas/SelectPackResponse'}}}
112-
113-
114112
/rpc/GetDeviceList:
115113
post:
116114
summary: Get device list
@@ -265,6 +263,17 @@ paths:
265263
'200':
266264
description: OK
267265
content: {application/json: {schema: {$ref: '#/components/schemas/ListMissingPacksResponse'}}}
266+
/rpc/GetVariables:
267+
post:
268+
summary: Get map of resolved variables
269+
description: Get map of resolved variables for specified context
270+
tags: [/rpc]
271+
requestBody:
272+
content: {application/json: {schema: {$ref: '#/components/schemas/GetVariablesRequest'}}}
273+
responses:
274+
'200':
275+
description: OK
276+
content: {application/json: {schema: {$ref: '#/components/schemas/GetVariablesResponse'}}}
268277

269278
components:
270279
schemas:
@@ -731,7 +740,6 @@ components:
731740
type: array
732741
items:
733742
type: string
734-
735743
DraftProjectsFilter:
736744
type: object
737745
properties:
@@ -905,7 +913,37 @@ components:
905913
description: Possible configurations for the reference application
906914
items:
907915
$ref: '#/components/schemas/VariablesConfiguration'
908-
916+
VariablesResult:
917+
allOf:
918+
- $ref: '#/components/schemas/SuccessResult'
919+
- properties:
920+
variables:
921+
type: object
922+
additionalProperties:
923+
type: string
924+
description: Resolved context variables
925+
required:
926+
- variables
927+
GetVariablesRequest:
928+
allOf:
929+
- $ref: '#/x-jsonrpc-envelope-request'
930+
- properties:
931+
method:
932+
type: string
933+
const: GetVariables
934+
params:
935+
type: object
936+
properties:
937+
context:
938+
type: string
939+
required:
940+
- context
941+
GetVariablesResponse:
942+
allOf:
943+
- $ref: '#/x-jsonrpc-envelope-response'
944+
- properties:
945+
result:
946+
$ref: '#/components/schemas/VariablesResult'
909947
GetVersionRequest:
910948
allOf:
911949
- $ref: '#/x-jsonrpc-envelope-request'

0 commit comments

Comments
 (0)