All Projects → fortify → ssc-restapi-client

fortify / ssc-restapi-client

Licence: MIT license
Communicate with Fortify Software Security Center through REST API in java, a swagger generated client

Projects that are alternatives of or similar to ssc-restapi-client

gha-setup-scancentral-client
GitHub Action to set up Fortify ScanCentral Client
Stars: ✭ 15 (+15.38%)
Mutual labels:  application-security, fortify, fortify-ssc
Datafire
A framework for building integrations and APIs
Stars: ✭ 487 (+3646.15%)
Mutual labels:  integration, openapi, api-client
Js Client
A Open-API derived JS + Node.js API client for Netlify
Stars: ✭ 170 (+1207.69%)
Mutual labels:  openapi, api-client
Openapi Generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
Stars: ✭ 10,634 (+81700%)
Mutual labels:  openapi, api-client
Ghapi
A delightful and complete interface to GitHub's amazing API
Stars: ✭ 187 (+1338.46%)
Mutual labels:  openapi, api-client
HTTPCalloutFramework
HTTP Callout Framework - A light weight callout framework for apex HTTP callouts in Salesforce
Stars: ✭ 43 (+230.77%)
Mutual labels:  integration, api-client
reedelk-runtime
Reedelk Runtime Platform Community Edition
Stars: ✭ 25 (+92.31%)
Mutual labels:  integration, openapi
tempo-api-python-client
Python bindings for Tempo - https://apidocs.tempo.io/
Stars: ✭ 17 (+30.77%)
Mutual labels:  api-client
bitflyer-api-dotnet-client
bitFlyer HTTP APIs Client Library for .NET (C#)
Stars: ✭ 23 (+76.92%)
Mutual labels:  api-client
JSON-API-Client
Abstract client-side php implementation of the json api specification (jsonapi.org)
Stars: ✭ 17 (+30.77%)
Mutual labels:  api-client
qvapay-python
Non official, but friendly QvaPay library for the Python language.
Stars: ✭ 18 (+38.46%)
Mutual labels:  api-client
go-fastapi
Create an API and get Swagger definition for free
Stars: ✭ 76 (+484.62%)
Mutual labels:  openapi
pyFireEye
Python API bindings for FireEye Products
Stars: ✭ 12 (-7.69%)
Mutual labels:  api-client
openapi
OpenAPI 3 Specification for golang
Stars: ✭ 18 (+38.46%)
Mutual labels:  openapi
camel-kafka-connector-examples
Apache Camel Kafka Connector Examples
Stars: ✭ 45 (+246.15%)
Mutual labels:  integration
Cuba.jl
Library for multidimensional numerical integration with four independent algorithms: Vegas, Suave, Divonne, and Cuhre.
Stars: ✭ 65 (+400%)
Mutual labels:  integration
connexion-example-redis-kubernetes
Connexion Example REST Service with Redis Store
Stars: ✭ 24 (+84.62%)
Mutual labels:  openapi
openapi-generator-go
An opinionated OpenAPI v3 code generator for Go. Use this to generate API models and router scaffolding.
Stars: ✭ 42 (+223.08%)
Mutual labels:  openapi
knime-tensorflow
KNIME Deep Learning - Tensorflow Integration
Stars: ✭ 18 (+38.46%)
Mutual labels:  integration
whook
Build strong and efficient REST web services.
Stars: ✭ 18 (+38.46%)
Mutual labels:  openapi

ssc-restapi-client

Fortify Software Security Center REST API java client

Communicate with Fortify Software Security Center through REST API in java, a swagger generated client

  • API version: 1:21.1.1.0015

Generation:

To run swagger generator and produce the library, simply run

gradlew clean build

When you build this project it will use [./src/swagger/spec.json] to generate a source code to communicate with Fortify SSC using REST, then compile it into a jar library and prepare for publishing to Maven central.

You can download spec.json from your working Fortify Software Security Center on the API Reference page.

Installation

Maven users

Add this dependency to your project's POM:

<dependency>
    <groupId>com.fortify</groupId>
    <artifactId>ssc-restapi-client</artifactId>
    <version>21.1</version>
    <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.fortify:ssc-restapi-client:21.1"

Others

At first generate the JAR by running the gradle build Then manually install the following JARs:

  • build/libs/ssc-restapi-client-21.1.jar
  • build/swagger-code-ssc/build/target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import com.fortify.ssc.restclient.*;
import com.fortify.ssc.restclient.auth.*;
import com.fortify.ssc.restclient.model.*;
import com.fortify.ssc.restclient.api.AaTrainingStatusOfProjectVersionControllerApi;

import java.io.File;
import java.util.*;

public class AaTrainingStatusOfProjectVersionControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: FortifyToken
        ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken");
        FortifyToken.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //FortifyToken.setApiKeyPrefix("Token");

        AaTrainingStatusOfProjectVersionControllerApi apiInstance = new AaTrainingStatusOfProjectVersionControllerApi();
        Long parentId = 789L; // Long | parentId
        String fields = "fields_example"; // String | Output fields
        try {
            ApiResultListAATrainingStatus result = apiInstance.listAaTrainingStatusOfProjectVersion(parentId, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AaTrainingStatusOfProjectVersionControllerApi#listAaTrainingStatusOfProjectVersion");
            e.printStackTrace();
        }
    }
}

Documentation for Authorization

Authentication schemes defined for the API:

Basic

  • Type: HTTP basic authentication

FortifyToken

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

Fortify R&D

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].