File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33## [ Unreleased] ( https://github.com/openfga/java-sdk/compare/v0.9.4...HEAD )
44
5- ### Changed
6- - ** BREAKING** : Renamed "Raw API" to "API Executor" throughout the SDK for consistency with Go SDK naming conventions
7- - ` RawApi ` class renamed to ` ApiExecutor `
8- - ` RawRequestBuilder ` class renamed to ` ApiExecutorRequestBuilder `
9- - ` OpenFgaClient.raw() ` method renamed to ` OpenFgaClient.apiExecutor() `
10- - All documentation updated to refer to "API Executor" instead of "Raw API"
11- - Example directory ` examples/raw-api ` renamed to ` examples/api-executor `
12- - Documentation file ` docs/RawApi.md ` renamed to ` docs/ApiExecutor.md `
13-
14- ** Migration Guide** : Update your code as follows:
15- ``` java
16- // Before
17- RawRequestBuilder request = RawRequestBuilder . builder(" POST" , " /stores/{store_id}/endpoint" )
18- .pathParam(" store_id" , storeId)
19- .body(requestData)
20- .build();
21- ApiResponse<ResponseType > response = client. raw(). send(request, ResponseType . class). get();
22-
23- // After
24- ApiExecutorRequestBuilder request = ApiExecutorRequestBuilder . builder(" POST" , " /stores/{store_id}/endpoint" )
25- .pathParam(" store_id" , storeId)
26- .body(requestData)
27- .build();
28- ApiResponse<ResponseType > response = client. apiExecutor(). send(request, ResponseType . class). get();
29- ```
5+ ### Added
6+ - Introduced ` ApiExecutor ` for executing custom HTTP requests to OpenFGA API endpoints
307
318## v0.9.4
329
You can’t perform that action at this time.
0 commit comments