1- # The TEA Component Index Object (TCO)
1+ # The TEA Component API
22
3- The TEA COMPONENT INDEX is the object that indicates a product component. The product may
3+ The TEA Component object is the object that indicates a product component. The product may
44be constructed with one or multiple Tea Components, each with their own set of
55related artefacts.
66
@@ -19,18 +19,53 @@ product object has one or multiple TEI URNs.
1919For the API to be able to present a list of versions in a cronological order,
2020a timestamp for a release is required.
2121
22- ## The Tea Component Object
22+ ## TEA Component Object
2323
24- - __ Uuid__ unique for this object
25- - __ Product name__ : A text field
26- - __ Product version__ : A text field, no required syntax
27- - __ Release date__ : A unix timestamp
28- - __ Pre-release__ : A boolean flag indicating a pre-release (beta, rc)
29- - __ Tco_uuid__ : A reference to the TEA Collection objet for this release
24+ A TEA Component object has the following parts:
25+
26+ - __ uuid__ : A unique identifier for the TEA component
27+ - __ name__ : Component name
28+ - __ identifiers__ : List of identifiers for the component
29+ - __ idType__ : Type of identifier, e.g. ` tei ` , ` purl ` , ` cpe `
30+ - __ idValue__ : Identifier value
3031
3132Note: In coming versions, there may be a flag indicating lifecycle status
3233for a component.
3334
35+ ### Examples
36+
37+ Some examples of Maven artifacts as TEA Components:
38+
39+ ``` json
40+ {
41+ "uuid" : " 3910e0fd-aff4-48d6-b75f-8bf6b84687f0" ,
42+ "name" : " Apache Log4j API" ,
43+ "identifiers" : [
44+ {
45+ "idType" : " purl" ,
46+ "idValue" : " pkg:maven/org.apache.logging.log4j/log4j-api"
47+ }
48+ ]
49+ }
50+ ```
51+
52+ ``` json
53+ {
54+ "uuid" : " b844c9bd-55d6-478c-af59-954a932b6ad3" ,
55+ "name" : " Apache Log4j Core" ,
56+ "identifiers" : [
57+ {
58+ "idType" : " cpe" ,
59+ "idValue" : " cpe:2.3:a:apache:log4j"
60+ },
61+ {
62+ "idType" : " purl" ,
63+ "idValue" : " pkg:maven/org.apache.logging.log4j/log4j-core"
64+ }
65+ ]
66+ }
67+ ```
68+
3469## Handling the Pre-Release flag
3570
3671The "Pre-release" flag is used to indicate that this is not a final release.
0 commit comments