-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtsm-rest-api-1.0.4.yaml
3755 lines (3592 loc) · 144 KB
/
tsm-rest-api-1.0.4.yaml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
description: |
This visual representation describes the TSM-Backend API for a Trusted Service Management System (TSMS) using Swagger UI. It serves as a complement to the [BSI-TR-03165](https://www.bsi.bund.de/DE/Themen/Unternehmen-und-Organisationen/Standards-und-Zertifizierung/Technische-Richtlinien/TR-nach-Thema-sortiert/tr03165/tr-03165.html) guideline. In case of any discrepancies, please refer to the written guideline.
A TSM-Backend is an IT system within a TSMS that offers management functions in the form of a REST-API. The TSM-Backend is a secure repository for various configurations, flavors, and resources required for installing an JavaCard Applet on secure elements such as eSE and eSIM. With this API, service providers can create, read, update, and delete files and configuration settings required for managing their Applets.
__Functionality:__
* upload JavaCard *.cap files to TSM-Backend
* define a service which consists of one or multiple *.cap files
* versionize the service
* define hardware variants for each service - called flavors
* specify technical requirements for each flavor, e.g. minimal JavaCard version
version: "1.0.4"
title: "BSI-TR-03165: TSM-Backend"
termsOfService: https://www.bsi.bund.de/DE/Service/Nutzungsbedingungen/Nutzungsbedingungen_node.html
contact:
email: mobile-eid@bsi.bund.de
license:
name: Apache License, Version 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
tags:
- name: /auth
description: "authentication methods"
- name: /serviceproviders
description: "methods for management of SP"
- name: /secure-component-profiles
description: "Retrieve SecureComponentProfiles"
- name: /services
description: "methods for management of Services and Flavors"
- name: /executable-load-files
description: "methods for management of ELFs and EMs"
- name: /application-configs
description: "methods for management of ApplicationConfigurations"
- name: /personalization-scripts
description: "methods for management of PersonalizationScripts"
- name: /certificates
description: "methods for management of Certificates"
- name: /spos-configs
description: "methods for management of SposConfigs"
paths:
### 4.1.6.1 Authentication ###
### 4.1.6.1.1 Create Access Token ###
/auth:
post:
tags:
- /auth
summary: "Authenticate to the TSM-Backend by sending a long-term token, and..."
description: "Authenticate to the TSM-Backend by sending a long-term token, and receive a short-term bearer token. The short-term bearer token is used to access the other API functions. The long-term token is provided out of band."
operationId: createAccessToken
##### Request Headers:
security:
- LongtermToken: []
##### Content-Type: application/json
##### Accept: application/json
##### Request Body: -
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/auth-Token"
400:
$ref: "#/components/responses/400Error_1002"
401:
$ref: "#/components/responses/401Error_1001"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.2 Manage SP Account ###
# This section lists methods for the management of SP account information.
### 4.1.6.2.1 Get Account Information ###
/serviceproviders/current:
get:
tags:
- /serviceproviders
summary: "Get details of the SP account."
description: "Get details of the SP account."
operationId: getAccountInformation
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/ServiceProvider"
400:
$ref: "#/components/responses/400Error_1002"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.3 Retrieve SecureComponentProfiles ###
# This section provides methods to retrieve information about the by the TSMS supported hardware platforms.
### 4.1.6.3.1 List SecureComponentProfiles ###
/secure-component-profiles:
get:
tags:
- /secure-component-profiles
summary: "List all available SecureComponentProfiles."
description: "List all available SecureComponentProfiles."
operationId: listSecureComponentProfiles
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
responses:
200:
description: Ok
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/SecureComponentProfile"
400:
$ref: "#/components/responses/400Error_1002"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.3.2 Get SecureComponentProfile ###
/secure-component-profiles/{scpId}:
get:
tags:
- /secure-component-profiles
summary: "Get details of a certain SecureComponentProfile."
description: "Get details of a certain SecureComponentProfile."
operationId: getSecureComponentProfile
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
parameters:
- $ref: "#/components/parameters/scpId"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/SecureComponentProfile"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.3.3 List Related ELFs ###
/secure-component-profiles/{scpId}/elfs:
get:
tags:
- /secure-component-profiles
summary: "List all ELFs that use a certain SecureComponentProfile."
description: "List all ELFs that use a certain SecureComponentProfile."
operationId: listScpRelatedElfs
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
parameters:
- $ref: "#/components/parameters/scpId"
responses:
200:
description: Ok
content:
application/json:
schema:
type: array
items:
oneOf:
- $ref: "#/components/schemas/ExecutableLoadFile"
- $ref: "#/components/schemas/CAP"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.3.4 List Related Services ###
/secure-component-profiles/{scpId}/services:
get:
tags:
- /secure-component-profiles
summary: "List all Services that use a certain SecureComponentProfile."
description: "List all Services that use a certain SecureComponentProfile."
operationId: listScpRelatedServices
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
parameters:
- $ref: "#/components/parameters/scpId"
responses:
200:
description: Ok
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Service"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.3.5 List Related Flavors ###
/secure-component-profiles/{scpId}/services/{serviceId}/flavors:
get:
tags:
- /secure-component-profiles
summary: "List all Flavors of a certain Service that use a certain SecureCo..."
description: "List all Flavors of a certain Service that use a certain SecureComponentProfile."
operationId: listScpRelatedFlavors
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
parameters:
- $ref: "#/components/parameters/scpId"
- $ref: "#/components/parameters/serviceId"
responses:
200:
description: Ok
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Flavor"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.3.6 List Related Versions ###
/secure-component-profiles/{scpId}/services/{serviceId}/versions:
get:
tags:
- /secure-component-profiles
summary: "List all Versions of a certain Service that use a certain SecureC..."
description: "List all Versions of a certain Service that use a certain SecureComponentProfile."
operationId: listScpRelatedVersions
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
parameters:
- $ref: "#/components/parameters/scpId"
- $ref: "#/components/parameters/serviceId"
responses:
200:
description: Ok
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Version"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4 Manage Services and Flavors ###
# This section lists methods for the management of Services, Versions, and Flavors. Using these methods, an SP may, e.g., link existing ELFs and ApplicationConfigs to create and modify different Versions and Flavors of a Service.
# There are methods to list, create, modify, and delete Service entities and their corresponding Version and Flavor entities, and to link ExecutableModule entities and ApplicationConfig entities to a certain Flavor.
# The methods listed in this section do not provide functionality to upload binary data for ELFs or to create ApplicationConfigs. Uploading ELFs can be done via methods listed in Section 4.1.6.4.27. Managing ApplicationConfigs can be done via methods listed in Section 4.1.6.6.
### 4.1.6.4.1 List Services ###
/services:
get:
tags:
- /services
summary: "List all Services of the authenticated ServiceProvider."
description: "List all Services of the authenticated ServiceProvider."
operationId: listServices
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
responses:
200:
description: Ok
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Service"
400:
$ref: "#/components/responses/400Error_1002"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.2 Create Service ###
#/services:
post:
tags:
- /services
summary: "Create a new Service."
description: "Create a new Service."
operationId: createService
##### Request Headers:
security:
- authToken: []
##### Content-Type: application/json
##### Accept: application/json
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/Service"
example:
name: "authDeviceByBNE"
accessAuthorizedDeviceApps: [ "A00000021784013C0110", "A00000007220548C0001", "A00000033467106C1111" ]
sposConfigId: "62d2a5d8-f591-f9ec-32b3-558047c576a7"
spParameters: { param0: "Value0 which can be evaluated by the App.", param1: "Value1 which can be evaluated by the App.", param2: "Value2 which can be evaluated by the App." }
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/Service"
400:
$ref: "#/components/responses/400Error_1003_1004_1007_1008_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.3 Get Service ###
/services/{serviceId}:
get:
tags:
- /services
summary: "Get details of a certain Service."
description: "Get details of a certain Service."
operationId: getService
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
parameters:
- $ref: "#/components/parameters/serviceId"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/Service"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.4 Modify Service ###
#/services/{serviceId}:
put:
tags:
- /services
summary: "Update details of an existing Service."
description: "Update details of an existing Service."
operationId: modifyService
##### Request Headers:
security:
- authToken: []
##### Content-Type: application/json
##### Accept: application/json
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/Service"
example:
name: "authDeviceByBNE"
accessAuthorizedDeviceApps: [ "A00000021784013C0110", "A00000007220548C0001", "A00000033467106C1111" ]
sposConfigId: "62d2a5d8-f591-f9ec-32b3-558047c576a7"
spParameters: { param0: "Value0 which can be evaluated by the App.", param1: "Value1 which can be evaluated by the App.", param2: "Value2 which can be evaluated by the App." }
parameters:
- $ref: "#/components/parameters/serviceId"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/Service"
400:
$ref: "#/components/responses/400Error_1005_1006_1007_1008_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.5 Delete Service ###
#/services/{serviceId}:
delete:
tags:
- /services
summary: "Delete a certain Service. All data, including associated Versions..."
description: "Delete a certain Service. All data, including associated Versions, Flavors, and ApplicationInstantiationConfigs is deleted. Referenced ELFs, ApplicationConfigs, and SposConfigs are not deleted."
operationId: deleteService
##### Request Headers:
security:
- authToken: []
##### Request Body: -
parameters:
- $ref: "#/components/parameters/serviceId"
responses:
204:
description: "item deleted successfully"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.6 List Flavors ###
/services/{serviceId}/flavors:
get:
tags:
- /services
summary: "List all Flavors of a certain Service."
description: "List all Flavors of a certain Service."
operationId: listFlavors
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
parameters:
- $ref: "#/components/parameters/serviceId"
responses:
200:
description: Ok
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Flavor"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.7 Create Flavor ###
#/services/{serviceId}/flavors:
post:
tags:
- /services
summary: "Create a new Flavor for a certain Service."
description: "Create a new Flavor for a certain Service."
operationId: createFlavor
##### Request Headers:
security:
- authToken: []
##### Content-Type: application/json
##### Accept: application/json
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/Flavor"
example:
name: "YY-624B-11"
description: "Additional description for this Flavor."
executableLoadFileIds: [ "54050ff0-7d9e-ef28-b120-3c3e81ae77af", "7860e9a9-70b3-43b1-b2d7-fc6199c92cb4", "2b3447ca-eecc-eba9-3f48-2f61ae43c742" ]
applicationInstantiationConfigs: [ { priority: 137, executableModuleId: "40b455b5-1e45-fd2f-319b-83794b2a8d82", applicationConfigId: "1e555fae-c0bb-9915-b086-b7f77a52ca69" }, { priority: 81, executableModuleId: "efe37b02-819a-9dc1-f656-b00b80072581", applicationConfigId: "9b2990c9-59b0-a979-d4b2-11ff5fe00cb2" }, { priority: 132, executableModuleId: "105030db-8fd7-095f-953e-a4143a3576c3", applicationConfigId: "b3f08e86-ebed-1a72-984d-8030cbe89b79" } ]
spParameters: { param0: "Value0 which can be evaluated by the App.", param1: "Value1 which can be evaluated by the App.", param2: "Value2 which can be evaluated by the App." }
contextSpecificAttributes: { param0: "Value0 which can be evaluated by the App.", param1: "Value1 which can be evaluated by the App.", param2: "Value2 which can be evaluated by the App." }
parameters:
- $ref: "#/components/parameters/serviceId"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/Flavor"
400:
$ref: "#/components/responses/400Error_1003_1004_1007_1008_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.8 Get Flavor ###
/services/{serviceId}/flavors/{flavorId}:
get:
tags:
- /services
summary: "Get details of a certain Flavor."
description: "Get details of a certain Flavor."
operationId: getFlavor
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
parameters:
- $ref: "#/components/parameters/serviceId"
- $ref: "#/components/parameters/flavorId"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/Flavor"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.9 Modify Flavor ###
#/services/{serviceId}/flavors/{flavorId}:
put:
tags:
- /services
summary: "Update details of an existing Flavor."
description: "Update details of an existing Flavor."
operationId: modifyFlavor
##### Request Headers:
security:
- authToken: []
##### Content-Type: application/json
##### Accept: application/json
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/Flavor"
example:
name: "YY-624B-11"
description: "Additional description for this Flavor."
executableLoadFileIds: [ "54050ff0-7d9e-ef28-b120-3c3e81ae77af", "7860e9a9-70b3-43b1-b2d7-fc6199c92cb4", "2b3447ca-eecc-eba9-3f48-2f61ae43c742" ]
applicationInstantiationConfigs: [ { priority: 137, executableModuleId: "40b455b5-1e45-fd2f-319b-83794b2a8d82", applicationConfigId: "1e555fae-c0bb-9915-b086-b7f77a52ca69" }, { priority: 81, executableModuleId: "efe37b02-819a-9dc1-f656-b00b80072581", applicationConfigId: "9b2990c9-59b0-a979-d4b2-11ff5fe00cb2" }, { priority: 132, executableModuleId: "105030db-8fd7-095f-953e-a4143a3576c3", applicationConfigId: "b3f08e86-ebed-1a72-984d-8030cbe89b79" } ]
spParameters: { param0: "Value0 which can be evaluated by the App.", param1: "Value1 which can be evaluated by the App.", param2: "Value2 which can be evaluated by the App." }
contextSpecificAttributes: { param0: "Value0 which can be evaluated by the App.", param1: "Value1 which can be evaluated by the App.", param2: "Value2 which can be evaluated by the App." }
parameters:
- $ref: "#/components/parameters/serviceId"
- $ref: "#/components/parameters/flavorId"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/Flavor"
400:
$ref: "#/components/responses/400Error_1005_1006_1007_1008_1009_1015_1016"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.10 Delete Flavor ###
#/services/{serviceId}/flavors/{flavorId}:
delete:
tags:
- /services
summary: "Delete a certain Flavor. All data, including associated Applicati..."
description: "Delete a certain Flavor. All data, including associated ApplicationInstantiationConfigs, is deleted. Referenced ELFs and ApplicationConfigs are not deleted. Deletion SHALL only be possible if the Flavor is not referenced in any Version and thus is not in use anywhere."
operationId: deleteFlavor
##### Request Headers:
security:
- authToken: []
##### Request Body: -
parameters:
- $ref: "#/components/parameters/serviceId"
- $ref: "#/components/parameters/flavorId"
responses:
204:
description: "item deleted successfully"
400:
$ref: "#/components/responses/400Error_1002_1009_1010"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.11 List Related ApplicationConfigs ###
/services/{serviceId}/flavors/{flavorId}/application-configs:
get:
tags:
- /services
summary: "List all ApplicationConfigs that use a certain Flavor."
description: "List all ApplicationConfigs that use a certain Flavor."
operationId: listServiceRelatedAppConfigs
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
parameters:
- $ref: "#/components/parameters/serviceId"
- $ref: "#/components/parameters/flavorId"
responses:
200:
description: Ok
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/ApplicationConfig"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.12 List Linked ELFs ###
/services/{serviceId}/flavors/{flavorId}/executable-load-files:
get:
tags:
- /services
summary: "List all ExecutableLoadFiles used by a certain Flavor."
description: "List all ExecutableLoadFiles used by a certain Flavor."
operationId: listLinkedElfs
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
parameters:
- $ref: "#/components/parameters/serviceId"
- $ref: "#/components/parameters/flavorId"
responses:
200:
description: Ok
content:
application/json:
schema:
type: array
items:
oneOf:
- $ref: "#/components/schemas/ExecutableLoadFile"
- $ref: "#/components/schemas/CAP"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.13 Link ELFs ###
#/services/{serviceId}/flavors/{flavorId}/executable-load-files:
post:
tags:
- /services
summary: "Add additional ExecutableLoadFiles to a certain Flavor. In case E..."
description: "Add additional ExecutableLoadFiles to a certain Flavor. In case ELF Ids provided are already linked to this Flavor, method will still be successful."
operationId: linkElfs
##### Request Headers:
security:
- authToken: []
##### Content-Type: application/json
##### Accept: application/json
requestBody:
description: "Ids of the ELFs to be added to the flavor (elfIds)"
required: true
content:
application/json:
schema:
type: array
items:
type: string
parameters:
- $ref: "#/components/parameters/serviceId"
- $ref: "#/components/parameters/flavorId"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/Flavor"
400:
$ref: "#/components/responses/400Error_1008_1009_1015_1016"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.14 Unlink ELFs ###
#/services/{serviceId}/flavors/{flavorId}/executable-load-files:
put:
tags:
- /services
summary: "Remove ExecutableLoadFiles from a certain Flavor. In case ELF Ids..."
description: "Remove ExecutableLoadFiles from a certain Flavor. In case ELF Ids provided are not linked to this Flavor, method will still be successful."
operationId: unlinkElfs
##### Request Headers:
security:
- authToken: []
##### Content-Type: application/json
##### Accept: application/json
requestBody:
description: "Ids of the ELFs to be removed from the flavor (elfIds)"
required: true
content:
application/json:
schema:
type: array
items:
type: string
parameters:
- $ref: "#/components/parameters/serviceId"
- $ref: "#/components/parameters/flavorId"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/Flavor"
400:
$ref: "#/components/responses/400Error_1008_1009_1015"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.15 Publish Flavor ###
/services/{serviceId}/flavors/{flavorId}/publish:
post:
tags:
- /services
summary: "Publish a Flavor. After publishing, the Flavor can be used for in..."
description: "Publish a Flavor. After publishing, the Flavor can be used for installation on a handset and certain attributes cannot be modified anymore (see Section 4.1.6.4.6). The publishing status of a Flavor can be checked with the attribute publish of the Flavor. When a Flavor is once published, it is not possible to undo this process. It is valid to call this method multiple times, even if a Flavor is already published."
operationId: publishFlavor
##### Request Headers:
security:
- authToken: []
##### Content-Type: application/json
##### Accept: application/json
##### Request Body: -
parameters:
- $ref: "#/components/parameters/serviceId"
- $ref: "#/components/parameters/flavorId"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/Flavor"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.16 List Related Versions ###
/services/{serviceId}/flavors/{flavorId}/versions:
get:
tags:
- /services
summary: "List all Versions that use a certain Flavor."
description: "List all Versions that use a certain Flavor."
operationId: listServiceRelatedVersions
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
parameters:
- $ref: "#/components/parameters/serviceId"
- $ref: "#/components/parameters/flavorId"
responses:
200:
description: Ok
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Version"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.17 List Versions ###
/services/{serviceId}/versions:
get:
tags:
- /services
summary: "List all Versions of a certain Service."
description: "List all Versions of a certain Service."
operationId: listVersions
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
parameters:
- $ref: "#/components/parameters/serviceId"
responses:
200:
description: Ok
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Version"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.18 Create Version ###
#/services/{serviceId}/versions:
post:
tags:
- /services
summary: "Create a new Version of a certain Service."
description: "Create a new Version of a certain Service."
operationId: createVersion
##### Request Headers:
security:
- authToken: []
##### Content-Type: application/json
##### Accept: application/json
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/Version"
example:
allowedDeployments: [ "c207b03f-75c5-c5ff-2460-fe6cec8ab803", "ca85a700-9b54-e89a-8b3f-60296b75c26f", "553e809b-5610-53f0-ed91-5a12fa0e65ac" ]
parameters:
- $ref: "#/components/parameters/serviceId"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/Version"
400:
$ref: "#/components/responses/400Error_1003_1004_1007_1008_1009_1016"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.19 Get Version ###
/services/{serviceId}/versions/{tag}:
get:
tags:
- /services
summary: "Get details of a certain Version."
description: "Get details of a certain Version."
operationId: getVersion
##### Request Headers:
security:
- authToken: []
##### Accept: application/json
##### Request Body: -
parameters:
- $ref: "#/components/parameters/serviceId"
- $ref: "#/components/parameters/tag"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/Version"
400:
$ref: "#/components/responses/400Error_1002_1009"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.20 Modify Version ###
#/services/{serviceId}/versions/{tag}:
put:
tags:
- /services
summary: "Update details of an existing Version."
description: "Update details of an existing Version."
operationId: modifyVersion
##### Request Headers:
security:
- authToken: []
##### Content-Type: application/json
##### Accept: application/json
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/Version"
example:
allowedDeployments: [ "c207b03f-75c5-c5ff-2460-fe6cec8ab803", "ca85a700-9b54-e89a-8b3f-60296b75c26f", "553e809b-5610-53f0-ed91-5a12fa0e65ac" ]
parameters:
- $ref: "#/components/parameters/serviceId"
- $ref: "#/components/parameters/tag"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/Version"
400:
$ref: "#/components/responses/400Error_1005_1006_1007_1008_1009_1016"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.21 Delete Version ###
#/services/{serviceId}/versions/{tag}:
delete:
tags:
- /services
summary: "Delete a certain Version. All data is deleted. Referenced Flavors..."
description: "Delete a certain Version. All data is deleted. Referenced Flavors are not deleted."
operationId: deleteVersion
##### Request Headers:
security:
- authToken: []
##### Request Body: -
parameters:
- $ref: "#/components/parameters/serviceId"
- $ref: "#/components/parameters/tag"
responses:
204:
description: "item deleted successfully"
400:
$ref: "#/components/responses/400Error_1002_1009_1010"
401:
$ref: "#/components/responses/401Error_1000"
500:
$ref: "#/components/responses/500Error_2000"
### 4.1.6.4.22 List Linked Flavors ###