Skip to content

casvisor/casvisor-java-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

casvisor-java-sdk

GitHub Actions codebeat badge codecov Maven Central Release Discord

Casvisor Java SDK is the official Java client for Casvisor, used to interact with Casvisor services.

Step1. Init Config

Initialization requires 5 parameters, which are all string type:

Name (in order) Must Description
endpoint Yes Casvisor server URL, such as http://localhost:16001
clientId Yes Application.clientId
clientSecret Yes Application.clientSecret
organizationName Yes Organization name
applicationName Yes Application name

You can either initialize the SDK with global config

CasvisorConfig config = new CasvisorConfig(endpoint, clientId, clientSecret, certificate, organizationName, applicationName);

Step2. Get Service and use

Now provide service: RecordService You can create them like

RecordService recordService = new RecordService(config);

RecordService

RecordServicesupport basic user operations, like:

  • getRecord(String name), get one record by record name.
  • getRecords(), get all records.
  • updateRecord(Record record)/addRecord(Record record)/deleteRecord(Record record), write record to database.

Contribution

We welcome any form of contribution, including but not limited to:

  1. Submit issues and suggestions
  2. Submit Pull Request
  3. Improve documentation

License

This project is licensed under the Apache 2.0 License.