You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+70-42Lines changed: 70 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the
46
46
-[Assertions](#assertions)
47
47
-[Read Assertions](#read-assertions)
48
48
-[Write Assertions](#write-assertions)
49
-
-[Raw API](#raw-api)
49
+
-[Calling Other Endpoints](#calling-other-endpoints)
50
50
-[Retries](#retries)
51
51
-[API Endpoints](#api-endpoints)
52
52
-[Models](#models)
@@ -1168,57 +1168,85 @@ try {
1168
1168
}
1169
1169
```
1170
1170
1171
-
### RawAPI
1171
+
### CallingOtherEndpoints
1172
1172
1173
-
TheRawAPIallows execution of HTTPrequests to OpenFGAendpoints using the SDK's configured HTTP client. This is useful for accessing API endpoints that do not yet have typed SDK method implementations.
1173
+
In certain cases you may want to call other APIs not yet wrapped by the SDK. You can do so by using the APIExecutor available from the `fgaClient`.TheAPIExecutorallows you to make raw HTTPcalls to any OpenFGAendpoint by specifying the operation name,HTTPmethod, path, parameters, body, and headers, while still honoring the client configuration (authentication, telemetry, retries, and error handling).
1174
1174
1175
-
#### Usage
1175
+
This is useful when:
1176
+
- you want to call a new endpoint that is not yet supported by the SDK
1177
+
- you are using an earlier version of the SDK that doesn't yet support a particular endpoint
1178
+
- you have a custom endpoint deployed that extends the OpenFGA API
0 commit comments