Creates a custom component
To create a custom component the name, title and url field is required. Only users with the "library_manager" permission can create a custom component. Allowable values of forgeId(Optional) are 1 : Other(This will be used as default when none is supplied) | 2 : SourceForge | 3 : Apache | 5 : MySQL AB |11 : kernel.org | 53 : Mozilla | 78 : Java.net | 87 : GNU | 175 : Free Software Directory | 176 : CodePlex | 186 : Savannah | 248 : CPAN | 419 : Google Code | 628 : Ibiblio Maven2 | 696 : GitHub | 2033 : NuGet Gallery | 2037 : npm |2039 : RubyGems | 2040 : CentOS Project | 2067 : PyPI | 2070 : Packagist | 2073 : Google's Maven Repository | 2076 : crates.io
Created
Bad Request
Internal Server Error
{- "description": "This is a custom component.",
- "encryption": "E.g. YES | default: NO",
- "forgeId": "E.g. 2 | default: 1",
- "name": "Comp1",
- "title": "Component1",
- "url": "http://abc@xyz.com | NA"
}
Search for the components based on the given input and return list of components which includes registered,popular and unpopular.Response will not include vulnerabilities and licenses of the version
OK
Bad request
Internal Server Error
{- "cpeList": [
- {
- "cpeName": "E.g. cpe://a:gnome:gedit",
- "cpeProduct": "Product name",
- "cpeVendor": "Vendor name"
}
], - "description": "string",
- "forge": "string",
- "id": 0,
- "licenseList": [
- {
- "externalId": "string",
- "id": 0,
- "name": "string",
- "priority": "string",
- "url": "string"
}
], - "name": "string",
- "title": "string",
- "url": "string",
- "versionList": [
- {
- "custom": false,
- "id": 0,
- "name": "string",
- "purl": "string"
}
]
}
Get Component by id.
OK
Not Found
Internal Server Error
{- "componentCPEList": [
- {
- "cpeName": "E.g. cpe://a:gnome:gedit",
- "cpeProduct": "Product name",
- "cpeVendor": "Vendor name"
}
], - "createdBy": "string",
- "createdOn": "string",
- "description": "This is a custom component.",
- "encryption": "E.g. YES | default: NO",
- "forge": "string",
- "forgeId": "E.g. 2 | default: 1",
- "id": 0,
- "licenseList": [
- {
- "description": "License description",
- "externalId": "External License Id Eg: 156",
- "familyName": "License family",
- "licenseText": "License Text",
- "name": "General Public License",
- "priority": "E.g. P1 | P2 | P3 | default: P3",
- "shortName": "GPL",
}
], - "name": "Comp1",
- "title": "Component1",
- "updatedBy": "string",
- "updatedOn": "string",
- "url": "http://abc@xyz.com | NA",
- "versionList": [
- {
- "name": "string",
- "vulnerabilitySummary": [
- {
- "property1": {
- "property1": 0,
- "property2": 0
}, - "property2": {
- "property1": 0,
- "property2": 0
}
}
]
}
]
}
Create a component custom version
Created
Bad Request
Not Found
Internal Server Error
{- "name": "string",
- "vulnerabilitySummary": [
- {
- "property1": {
- "property1": 0,
- "property2": 0
}, - "property2": {
- "property1": 0,
- "property2": 0
}
}
]
}