Casvisor Java SDK is the official Java client for Casvisor, used to interact with Casvisor services.
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 |
CasvisorConfig config = new CasvisorConfig(endpoint, clientId, clientSecret, certificate, organizationName, applicationName);
Now provide service: RecordService
You can create them like
RecordService recordService = new RecordService(config);
RecordService
support 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.
We welcome any form of contribution, including but not limited to:
- Submit issues and suggestions
- Submit Pull Request
- Improve documentation
This project is licensed under the Apache 2.0 License.