- Notifications
You must be signed in to change notification settings - Fork12
secureCodeBox/defectdojo-client-java
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Java Client to interact with the DefectDojo API.
You can find the latest version onMaven Central.
<dependency> <groupId>io.securecodebox</groupId> <artifactId>defectdojo-client</artifactId> <version>1.0.0.-beta2</version></dependency>
implementationgroup:'io.securecodebox',name:'defectdojo-client',version:'1.0.0.-beta2'
To run a local build clone this repo and just invoke the following command in the repo directory:
mvn clean install
The client is supposed to be compatible with DefectDojo 1.10 and later, older version of DefectDojo might still work, but are not officially supported.
importcom.fasterxml.jackson.core.JsonProcessingException;importio.securecodebox.persistence.defectdojo.config.Config;importio.securecodebox.persistence.defectdojo.service.ProductTypeService;importjava.net.URISyntaxException;publicclassDefectDojoClientTest {publicstaticvoidmain(String[]args)throwsURISyntaxException,JsonProcessingException {// Configure DefectDojo URl and APIv2 Keyvarconf =newDefectDojoConfig("https://defectdojo.example.com","f8....");varproductTypeService =newProductTypeService(conf);varproductTypes =productTypeService.search();System.out.println("ProductTypes:");for (varproductType :productTypes) {System.out.println(" - Id: " +productType.getId() +", Name: '" +productType.getName()) +"'"; } }}
To build a gradle project that depends on this client one can use./gradlew build --include-build <path_to_this_folder>
. Gradle will then build the project with this local version of the the client.
About
This repo contains a OWASP DefectDojo API Client based on Java.
Topics
Resources
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors10
Uh oh!
There was an error while loading.Please reload this page.