Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This repo contains a OWASP DefectDojo API Client based on Java.

NotificationsYou must be signed in to change notification settings

secureCodeBox/defectdojo-client-java

Repository files navigation

Java Client to interact with the DefectDojo API.

Dependency Information

You can find the latest version and dependency infos onMaven Central.

Development

To run a local build clone this repo and just invoke the following command in the repo directory:

mvn clean install

Release

The release process isdocumented in a separate file.

Supported DefectDojo Versions

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.

Example

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()) +"'";        }    }}

Testing a modified client

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

Stars

Watchers

Forks

Packages

 
 
 

Contributors10

Languages


[8]ページ先頭

©2009-2025 Movatter.jp