Skip to content

Commit 675ec32

Browse files
committed
Address feedback
1 parent be55cc0 commit 675ec32

1 file changed

Lines changed: 21 additions & 19 deletions

File tree

api/csolution-openapi.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,17 @@ paths:
208208
'200':
209209
description: OK
210210
content: {application/json: {schema: {$ref: '#/components/schemas/GetLogMessagesResponse'}}}
211-
/rpc/GetApplications:
211+
/rpc/GetDraftProjects:
212212
post:
213-
summary: Get applications
213+
summary: Get draft projects
214214
description: Get reference applications, examples and solution templates
215215
tags: [/rpc]
216216
requestBody:
217-
content: {application/json: {schema: {$ref: '#/components/schemas/GetApplicationsRequest'}}}
217+
content: {application/json: {schema: {$ref: '#/components/schemas/GetDraftProjectsRequest'}}}
218218
responses:
219219
'200':
220220
description: OK
221-
content: {application/json: {schema: {$ref: '#/components/schemas/GetApplicationsResponse'}}}
221+
content: {application/json: {schema: {$ref: '#/components/schemas/GetDraftProjectsResponse'}}}
222222

223223
components:
224224
schemas:
@@ -649,7 +649,7 @@ components:
649649
items:
650650
type: string
651651

652-
ApplicationsFilter:
652+
DraftProjectsFilter:
653653
type: object
654654
properties:
655655
board:
@@ -658,10 +658,12 @@ components:
658658
device:
659659
type: string
660660
description: Device Identifier
661-
environment:
662-
type: string
663-
description: Name of the environment
664-
Environment:
661+
environments:
662+
type: array
663+
items:
664+
type: string
665+
description: Environment names
666+
ExampleEnvironment:
665667
type: object
666668
properties:
667669
name:
@@ -677,7 +679,7 @@ components:
677679
- name
678680
- file
679681
- folder
680-
Example:
682+
ExampleProject:
681683
type: object
682684
properties:
683685
name:
@@ -701,7 +703,7 @@ components:
701703
environments:
702704
type: array
703705
items:
704-
$ref: '#/components/schemas/Environment'
706+
$ref: '#/components/schemas/ExampleEnvironment'
705707
description: List of environments
706708
components:
707709
type: array
@@ -751,18 +753,18 @@ components:
751753
- file
752754
- folder
753755
- pack
754-
ApplicationsInfo:
756+
DraftProjectsInfo:
755757
allOf:
756758
- $ref: '#/components/schemas/SuccessResult'
757759
- properties:
758760
examples:
759761
type: array
760762
items:
761-
$ref: '#/components/schemas/Example'
763+
$ref: '#/components/schemas/ExampleProject'
762764
refApps:
763765
type: array
764766
items:
765-
$ref: '#/components/schemas/Example'
767+
$ref: '#/components/schemas/ExampleProject'
766768
templates:
767769
type: array
768770
items:
@@ -1147,26 +1149,26 @@ components:
11471149
result:
11481150
$ref: '#/components/schemas/LogMessages'
11491151

1150-
GetApplicationsRequest:
1152+
GetDraftProjectsRequest:
11511153
allOf:
11521154
- $ref: '#/x-jsonrpc-envelope-request-with-params'
11531155
- properties:
11541156
method:
11551157
type: string
1156-
const: GetApplications
1158+
const: GetDraftProjects
11571159
params:
11581160
type: object
11591161
properties:
11601162
filter:
1161-
$ref: '#/components/schemas/ApplicationsFilter'
1163+
$ref: '#/components/schemas/DraftProjectsFilter'
11621164
required:
11631165
- filter
1164-
GetApplicationsResponse:
1166+
GetDraftProjectsResponse:
11651167
allOf:
11661168
- $ref: '#/x-jsonrpc-envelope-response'
11671169
- properties:
11681170
result:
1169-
$ref: '#/components/schemas/ApplicationsInfo'
1171+
$ref: '#/components/schemas/DraftProjectsInfo'
11701172

11711173
x-jsonrpc-envelope-request:
11721174
allOf:

0 commit comments

Comments
 (0)