GithubHelp home page GithubHelp logo

clinv-rest-client's Introduction

Summary

CLI tool that can be used by customers to test the Netverify "perform" API. No Spring Boot dependencies are used. The tool tries to be flexible with the image naming patterns used by the customer.

Nevertheless, the images have to be properly classified before the tool can be used:

  • no duplicates with the same classifier are allowed (such a case will be logged and the images with a corresponding unique ID skipped),
  • the number of images inside a unique ID group has to correspond to the chosen image presence strategy (e.g. one image if just the ID front is sent).

Build

The POM is kept explicitly as small as possible. The final JAR is built with dependencies by the Maven assembly plugin. Running

mvn clean package

will produce the JAR itself and additionally a ZIP file inside which the JAR and a configuration file are located.

Configure

The tool supports three types of configurations:

  • an internal config.properties file, filled with default values,
  • an external config.properties file, overriding the internal values,
  • CLI parameters that override the config.properties values.

The properties are documented inside the configuration file. All values can be overridden by a CLI parameter.

Run

The tool can be started using

java -jar clinv.jar api.token=******** api.secret=********

The api.token and api.secret parameters are the only two that have to be specified on the command line. They can be persisted in the config.properties, but such a use case is discouraged due to security reasons.

clinv-rest-client's People

Contributors

bpindelski avatar

Watchers

Thai Ngo avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.