@@ -236,6 +236,7 @@ public void should_document_get_packages_with_all_details() throws Exception {
236
236
linkWithRel ("last" ).description ("Link to last page" )
237
237
),
238
238
responseFields (
239
+ fieldWithPath ("_embedded.sw360:packages.[]id" ).description ("The id of the package" ),
239
240
fieldWithPath ("_embedded.sw360:packages.[]name" ).description ("The name of the package" ),
240
241
fieldWithPath ("_embedded.sw360:packages.[]version" ).description ("The version of the package" ),
241
242
fieldWithPath ("_embedded.sw360:packages.[]packageType" ).description ("The package type, possible values are: " + Arrays .asList (CycloneDxComponentType .values ())),
@@ -270,6 +271,7 @@ public void should_document_get_package() throws Exception {
270
271
linkWithRel ("self" ).description ("The <<resources-packages,Packages resource>>" )
271
272
),
272
273
responseFields (
274
+ fieldWithPath ("id" ).description ("The id of the package" ),
273
275
fieldWithPath ("name" ).description ("The name of the package" ),
274
276
fieldWithPath ("version" ).description ("The version of the package" ),
275
277
fieldWithPath ("packageType" ).description ("The package type, possible values are: " + Arrays .asList (CycloneDxComponentType .values ())),
@@ -403,6 +405,7 @@ public void should_document_create_package() throws Exception {
403
405
fieldWithPath ("description" ).description ("Description of the package" )
404
406
),
405
407
responseFields (
408
+ fieldWithPath ("id" ).description ("The id of the package" ),
406
409
fieldWithPath ("name" ).description ("The name of the package" ),
407
410
fieldWithPath ("version" ).description ("The version of the package" ),
408
411
fieldWithPath ("packageType" ).description ("The package type, possible values are: " + Arrays .asList (CycloneDxComponentType .values ())),
@@ -437,6 +440,7 @@ public void should_document_update_package() throws Exception {
437
440
fieldWithPath ("description" ).description ("Description of the package" )
438
441
),
439
442
responseFields (
443
+ fieldWithPath ("id" ).description ("The id of the package" ),
440
444
fieldWithPath ("name" ).description ("The name of the package" ),
441
445
fieldWithPath ("version" ).description ("The version of the package" ),
442
446
fieldWithPath ("packageType" ).description ("The package type, possible values are: " + Arrays .asList (CycloneDxComponentType .values ())),
0 commit comments