Creates a custom component
To create a custom component the name, title and url field is required. 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
{- "name": "Comp1",
- "title": "Component1",
- "url": "http://abc@xyz.com | NA",
- "description": "This is a custom component.",
- "encryption": "E.g. YES | default: NO",
- "forgeId": "E.g. 2 | default: 1"
}
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
{- "id": 0,
- "name": "string",
- "description": "string",
- "title": "string",
- "url": "string",
- "forge": "string",
- "versionList": [
- {
- "id": 0,
- "name": "string",
- "custom": false,
- "purl": "string"
}
], - "licenseList": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "priority": "string",
- "externalId": "string"
}
], - "cpeList": [
- {
- "cpeName": "E.g. cpe://a:gnome:gedit",
- "cpeVendor": "Vendor name",
- "cpeProduct": "Product name"
}
]
}
Get Component by id.
OK
Not Found
Internal Server Error
{- "name": "Comp1",
- "title": "Component1",
- "url": "http://abc@xyz.com | NA",
- "description": "This is a custom component.",
- "encryption": "E.g. YES | default: NO",
- "forgeId": "E.g. 2 | default: 1",
- "id": 0,
- "forge": "string",
- "versionList": [
- {
- "name": "string",
- "vulnerabilitySummary": [
- {
- "property1": {
- "property1": 0,
- "property2": 0
}, - "property2": {
- "property1": 0,
- "property2": 0
}
}
]
}
], - "licenseList": [
- {
- "name": "General Public License",
- "shortName": "GPL",
- "licenseText": "License Text",
- "priority": "E.g. P1 | P2 | P3 | default: P3",
- "description": "License description",
- "familyName": "License family",
- "externalId": "External License Id Eg: 156"
}
], - "componentCPEList": [
- {
- "cpeName": "E.g. cpe://a:gnome:gedit",
- "cpeVendor": "Vendor name",
- "cpeProduct": "Product name"
}
], - "createdBy": "string",
- "createdOn": "string",
- "updatedBy": "string",
- "updatedOn": "string"
}
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
}
}
]
}