Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(java-sdk): Add OpenFgaClient #20

Merged
merged 22 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
54b5763
feat(java-sdk): Add OpenFgaClient
booniepepper Sep 15, 2023
ebf9b40
refactor: Simplify OpenFgaClient method signatures
booniepepper Sep 21, 2023
f1b6199
test: Client tests and integ tests
booniepepper Sep 22, 2023
58b65af
test: Generate coverage reports after tests
booniepepper Sep 22, 2023
4d4f5bc
test: Add tests on OpenFgaClient's set methods
booniepepper Sep 22, 2023
62176c2
test: Add tests on OpenFgaClient with static & credential-based OAuth…
booniepepper Sep 25, 2023
916f89e
test: Add tests on OpenFgaClient writeTuples() deleteTuples() and rea…
booniepepper Sep 26, 2023
1fe2aef
fix: fix casing of function OpenFgaClient.readChanges(...)
booniepepper Sep 26, 2023
012131f
test: Ensure testing from OAuth2 workflow caches a first result
booniepepper Sep 26, 2023
8faca25
fix: remove some duplication in ClientConfiguration
booniepepper Sep 26, 2023
34c00b3
test: Add test for OpenFgaClient list stores with option
booniepepper Sep 26, 2023
7f69f24
docs: Add more example api calls
booniepepper Sep 26, 2023
becd953
test: Add tests for OpenFgaClient readChanges(options) and readAuthor…
booniepepper Sep 26, 2023
ac06d83
feat(java-sdk): Add ClientReadRequest
booniepepper Sep 26, 2023
b75b41e
feat: Polishing Java SDK's OpenFgaClient to look more like other SDKs
booniepepper Sep 27, 2023
ee57ba2
feat: Polish OpenFgaClient check(...) and expand(...)
booniepepper Sep 27, 2023
fab7f27
feat: Polish remaining OpenFgaClient requests
booniepepper Sep 27, 2023
669e745
docs: Flesh out README
booniepepper Sep 27, 2023
4bc66da
fix: do not send empty writes/deletes
booniepepper Sep 27, 2023
739f568
chore: Bump version to 0.0.5
booniepepper Sep 27, 2023
68d86e0
docs: Fix .NET-esque comments in README
booniepepper Sep 28, 2023
d907238
chore(java-sdk): Update Changelog entries
booniepepper Sep 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,32 @@ src/main/java/dev/openfga/sdk/api/auth/CredentialsFlowResponse.java
src/main/java/dev/openfga/sdk/api/auth/OAuth2Client.java
src/main/java/dev/openfga/sdk/api/client/ApiClient.java
src/main/java/dev/openfga/sdk/api/client/ApiResponse.java
src/main/java/dev/openfga/sdk/api/client/ClientAssertion.java
src/main/java/dev/openfga/sdk/api/client/ClientCheckRequest.java
src/main/java/dev/openfga/sdk/api/client/ClientExpandRequest.java
src/main/java/dev/openfga/sdk/api/client/ClientListObjectsRequest.java
src/main/java/dev/openfga/sdk/api/client/ClientListRelationsRequest.java
src/main/java/dev/openfga/sdk/api/client/ClientReadRequest.java
src/main/java/dev/openfga/sdk/api/client/ClientTupleKey.java
src/main/java/dev/openfga/sdk/api/client/ClientWriteRequest.java
src/main/java/dev/openfga/sdk/api/client/OpenFgaClient.java
src/main/java/dev/openfga/sdk/api/configuration/ApiToken.java
src/main/java/dev/openfga/sdk/api/configuration/BaseConfiguration.java
src/main/java/dev/openfga/sdk/api/configuration/ClientCheckOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientConfiguration.java
src/main/java/dev/openfga/sdk/api/configuration/ClientCredentials.java
src/main/java/dev/openfga/sdk/api/configuration/ClientExpandOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientListObjectsOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientReadOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ClientWriteOptions.java
src/main/java/dev/openfga/sdk/api/configuration/Configuration.java
src/main/java/dev/openfga/sdk/api/configuration/ConfigurationOverride.java
src/main/java/dev/openfga/sdk/api/configuration/Credentials.java
src/main/java/dev/openfga/sdk/api/configuration/CredentialsMethod.java
src/main/java/dev/openfga/sdk/api/configuration/ListStoresOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ReadAuthorizationModelOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ReadAuthorizationModelsOptions.java
src/main/java/dev/openfga/sdk/api/configuration/ReadChangesOptions.java
src/main/java/dev/openfga/sdk/api/model/AbstractOpenApiSchema.java
src/main/java/dev/openfga/sdk/api/model/Any.java
src/main/java/dev/openfga/sdk/api/model/Assertion.java
Expand Down Expand Up @@ -149,9 +168,12 @@ src/main/java/dev/openfga/sdk/errors/FgaInvalidParameterException.java
src/main/java/dev/openfga/sdk/util/Pair.java
src/main/java/dev/openfga/sdk/util/StringUtil.java
src/test-integration/java/dev/openfga/sdk/api/OpenFgaApiIntegrationTest.java
src/test-integration/java/dev/openfga/sdk/api/client/OpenFgaClientIntegrationTest.java
src/test-integration/java/package-info.java
src/test/java/dev/openfga/sdk/api/OpenFgaApiTest.java
src/test/java/dev/openfga/sdk/api/OpenFgaApiTest.java
src/test/java/dev/openfga/sdk/api/auth/OAuth2ClientTest.java
src/test/java/dev/openfga/sdk/api/client/OpenFgaClientTest.java
src/test/java/dev/openfga/sdk/api/configuration/ClientCredentialsTest.java
src/test/java/dev/openfga/sdk/api/configuration/ConfigurationTest.java
src/test/java/dev/openfga/sdk/api/model/AnyTest.java
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v0.0.5

### [0.0.5](https://github.com/openfga/java-sdk/compare/v0.0.4...v0.0.5) (2023-09-27)

- feat(client): add `OpenFgaClient` wrapping `OpenFgaApi` and exposing a simplified interface.
See [docs](https://github.com/openfga/java-sdk?tab=readme-ov-file#initializing-the-api-client)
- chore(docs): update the README with installation and usage instructions.

## v0.0.3, v0.0.4

### [0.0.4](https://github.com/openfga/java-sdk/compare/v0.0.2...v0.0.4) (2023-09-21)
Expand Down
Loading