java-api-client
Kiuwan Java client for REST API.
Maven configuration:
<dependency>
<groupId>com.kiuwan</groupId>
<artifactId>java-api-client</artifactId>
<version>0.1.4</version>
</dependency>
Supported actions are: (new features are marked with *)
- List action plans of an application.
- List analyses of an application.
- List deliveries of an application.
- List portfolio definitions of an account.
- List your applications.
- Get last analysis results from your application.
- Get all defects from your application.
- Get files (with metric values and defects) from your application.
- Get all defects from your application indicating the analysis code.
- Get files (with metric values and defects) from your application indicating the analysis code.
- Get metrics from your application indicating the analysis code.
- Get the differences of defects between two analysis.
- Get basic information of an action plan.
- Get all defects in an action plan.
- Get the defects that did not make to pass a checkpoint.
- Get the files for a concrete rule that did not pass a checkpoint.
- Get delivery details.
- Get pending defects of an action plan.
- Get removed defects of an action plan.
- Get rule documentation.
- Get violated rules of an analysis.
- Get files of a violated rule in an analysis.
- Get defects of a file with defect of an analysis.
- Get violated rules of last analysis of an application.
- Create new applications.
- Create new users in your account.
- Create new user groups in your account.
- Delete applications.
- Delete users of your account.
- Delete user groups of your account.
- Modify applications' information.
- Modify users' information.
- Modify user groups' information.
- Save portfolio definitions into your account. (*)
Source code includes examples that shows you how to execute each supported action. (new features are marked with *)
- com.kiuwan.client.examples.ListActionPlans.java
- com.kiuwan.client.examples.ListAnalyses.java
- com.kiuwan.client.examples.ListDeliveries
- com.kiuwan.client.examples.ListPortfolioDefinitions.java
- com.kiuwan.client.examples.ListApplications.java
- com.kiuwan.client.examples.ApplicationsResults.java
- com.kiuwan.client.examples.ApplicationDefects.java
- com.kiuwan.client.examples.ApplicationFiles.java
- com.kiuwan.client.examples.AnalysisDefects.java
- com.kiuwan.client.examples.AnalysisFiles.java
- com.kiuwan.client.examples.AnalysisMetrics.java
- com.kiuwan.client.examples.CompareAnalysisDefects.java
- com.kiuwan.client.examples.GetActionPlanInfo.java
- com.kiuwan.client.examples.GetAllActionPlanDefects.java
- com.kiuwan.client.examples.GetCheckpointDefects.java
- com.kiuwan.client.examples.GetCheckpointFilesWithDefects.java
- com.kiuwan.client.examples.GetDeliveryDetails.java
- com.kiuwan.client.examples.GetPendingActionPlanDefects.java
- com.kiuwan.client.examples.GetRemovedActionPlanDefects.java
- com.kiuwan.client.examples.GetRuleDocumentation.java
- com.kiuwan.client.examples.GetViolatedRules.java
- com.kiuwan.client.examples.GetViolatedRuleFiles.java
- com.kiuwan.client.examples.GetViolatedRuleFileDefects.java
- com.kiuwan.client.examples.GetViolatedRulesForApplication.java
- com.kiuwan.client.examples.CreateApplications.java
- com.kiuwan.client.examples.CreateUsers.java
- com.kiuwan.client.examples.CreateUserGroups.java
- com.kiuwan.client.examples.DeleteApplications.java
- com.kiuwan.client.examples.DeleteUsers.java
- com.kiuwan.client.examples.DeleteUserGroups.java
- com.kiuwan.client.examples.ModifyApplications.java
- com.kiuwan.client.examples.ModifyUsers.java
- com.kiuwan.client.examples.ModifyUserGroups.java
- com.kiuwan.client.examples.SavePortfolioDefinitions.java (*)
Example of use:
KiuwanRestApiClient client = new KiuwanRestApiClient(username, password);
try {
List<Application> apps = client.getApplications();
for(Application app: apps) {
System.out.println(app);
}
} catch (KiuwanClientException e) {
e.printStackTrace();
}