{"id":25094389,"url":"https://github.com/casvisor/casvisor-java-sdk","last_synced_at":"2025-04-01T23:26:08.856Z","repository":{"id":274559867,"uuid":"918554668","full_name":"casvisor/casvisor-java-sdk","owner":"casvisor","description":"Casvisor Java SDK","archived":false,"fork":false,"pushed_at":"2025-02-14T15:15:49.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T16:25:07.866Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/casvisor/casvisor","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/casvisor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-18T08:27:48.000Z","updated_at":"2025-02-14T15:39:21.000Z","dependencies_parsed_at":"2025-01-28T03:22:06.403Z","dependency_job_id":"dde97f2d-1bfd-426f-8138-b9f4355196de","html_url":"https://github.com/casvisor/casvisor-java-sdk","commit_stats":null,"previous_names":["casvisor/casvisor-java-sdk"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casvisor%2Fcasvisor-java-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casvisor%2Fcasvisor-java-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casvisor%2Fcasvisor-java-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casvisor%2Fcasvisor-java-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casvisor","download_url":"https://codeload.github.com/casvisor/casvisor-java-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246726533,"owners_count":20823829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-07T15:18:03.568Z","updated_at":"2025-04-01T23:26:08.848Z","avatar_url":"https://github.com/casvisor.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# casvisor-java-sdk\n\n[![GitHub Actions](https://github.com/casvisor/casvisor-java-sdk/actions/workflows/maven-ci.yml/badge.svg)](https://github.com/casvisor/casvisor-java-sdk/actions/workflows/maven-ci.yml)\n[![codebeat badge](https://codebeat.co/badges/e3e92eff-8b71-4903-9764-5126e855b3b6)](https://codebeat.co/projects/github-com-casvisor-casvisor-java-sdk-master)\n[![codecov](https://codecov.io/gh/casvisor/casvisor-java-sdk/branch/master/graph/badge.svg?token=1C2FSTN4J8)](https://codecov.io/gh/casvisor/casvisor-java-sdk)\n[![Maven Central](https://img.shields.io/maven-central/v/org.casbin/casvisor-java-sdk.svg)](https://mvnrepository.com/artifact/org.casbin/casvisor-java-sdk/latest)\n[![Release](https://img.shields.io/github/release/casvisor/casvisor-java-sdk.svg)](https://github.com/casvisor/casvisor-java-sdk/releases/latest)\n[![Discord](https://img.shields.io/discord/1022748306096537660?logo=discord\u0026label=discord\u0026color=5865F2)](https://discord.gg/5rPsrAzK7S)\n\nCasvisor Java SDK is the official Java client for Casvisor, used to interact with Casvisor services.\n\n## Step1. Init Config\n\nInitialization requires 5 parameters, which are all string type:\n\n| Name (in order)  | Must | Description                                           |\n|------------------|------|-------------------------------------------------------|\n| endpoint         | Yes  | Casvisor server URL, such as `http://localhost:16001` |\n| clientId         | Yes  | Application.clientId                                  |\n| clientSecret     | Yes  | Application.clientSecret                              |\n| organizationName | Yes  | Organization name                                     |\n| applicationName  | Yes  | Application name                                      |\n\n### You can either initialize the SDK with global config\n\n```java\nCasvisorConfig config = new CasvisorConfig(endpoint, clientId, clientSecret, certificate, organizationName, applicationName);\n```\n\n## Step2. Get Service and use\n\nNow provide service: ``RecordService``\nYou can create them like\n```java\nRecordService recordService = new RecordService(config);\n```\n## RecordService\n\n``RecordService``support basic user operations, like:\n- ``getRecord(String name)``, get one record by record name.\n- ``getRecords()``, get all records.\n- ``updateRecord(Record record)/addRecord(Record record)/deleteRecord(Record record)``, write record to database.\n\n## Contribution\n\nWe welcome any form of contribution, including but not limited to:\n\n1. Submit issues and suggestions\n2. Submit Pull Request\n3. Improve documentation\n\n## License\n\nThis project is licensed under the [Apache 2.0 License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasvisor%2Fcasvisor-java-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasvisor%2Fcasvisor-java-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasvisor%2Fcasvisor-java-sdk/lists"}