Skip to content

Commit a9bb8cc

Browse files
authored
Merge pull request #175 from CycloneDX/fix/hackathon-api-updates
API Spec updates as noted during Hackathon
2 parents 61fb70f + fb92980 commit a9bb8cc

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

spec/openapi.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ paths:
111111
$ref: "#/components/responses/404-object-by-id-not-found"
112112
tags:
113113
- TEA Component
114-
/release/{uuid}/collection:
114+
/release/{uuid}/collection/latest:
115115
get:
116116
description: Get the latest TEA Collection belonging to the TEA Release
117-
operationId: getLatestCollectionByReleaseId
117+
operationId: getLatestCollection
118118
parameters:
119119
- name: uuid
120120
in: path
@@ -163,18 +163,18 @@ paths:
163163
$ref: "#/components/responses/404-object-by-id-not-found"
164164
tags:
165165
- TEA Release
166-
/release/{uuid}/collection/{version}:
166+
/release/{uuid}/collection/{collectionVersion}:
167167
get:
168-
description: Get all versions of a TEA Collection by its UUID
169-
operationId: getTeaCollectionVersionByCollectionIdAndVersion
168+
description: Get a specific Collection (by version) for a TEA Release by its UUID
169+
operationId: getCollection
170170
parameters:
171171
- name: uuid
172172
in: path
173173
required: true
174174
description: UUID of TEA Collection in the TEA server
175175
schema:
176176
"$ref": "#/components/schemas/uuid"
177-
- name: version
177+
- name: collectionVersion
178178
in: path
179179
required: true
180180
description: Version of TEA Collection
@@ -347,8 +347,11 @@ components:
347347
description: Version number
348348
type: string
349349
example: 1.2.3
350+
createdDate:
351+
description: Timestamp when this Release was created in TEA (for sorting purposes)
352+
"$ref": "#/components/schemas/date-time"
350353
releaseDate:
351-
description: Timestamp of the release (for sorting purposes)
354+
description: Timestamp of the release
352355
"$ref": "#/components/schemas/date-time"
353356
preRelease:
354357
type: boolean
@@ -364,26 +367,28 @@ components:
364367
required:
365368
- uuid
366369
- version
367-
- releaseDate
370+
- createdDate
368371
examples:
369372
# Apache Tomcat 11.0.6
370373
- uuid: 605d0ecb-1057-40e4-9abf-c400b10f0345
371374
version: "11.0.6"
375+
createdDate: 2025-04-01T15:43:00Z
372376
releaseDate: 2025-04-01T15:43:00Z
373377
identifiers:
374378
- idType: PURL
375379
idValue: pkg:maven/org.apache.tomcat/[email protected]
376380
# Different release of Apache Tomcat
377381
- uuid: da89e38e-95e7-44ca-aa7d-f3b6b34c7fab
378382
version: "10.1.40"
383+
createdDate: 2025-04-01T18:20:00Z
379384
releaseDate: 2025-04-01T18:20:00Z
380385
identifiers:
381386
- idType: PURL
382387
idValue: pkg:maven/org.apache.tomcat/[email protected]
383388
# A pre-release of Apache Tomcat
384389
- uuid: 95f481df-f760-47f4-b2f2-f8b76d858450
385390
version: "11.0.0-M26"
386-
releaseDate: 2024-09-13T17:49:00Z
391+
createdDate: 2024-09-13T17:49:00Z
387392
preRelease: true
388393
identifiers:
389394
- idType: PURL

0 commit comments

Comments
 (0)