Skip to content

Commit e1e3f68

Browse files
committed
feat: address copilot comments
1 parent 60b69a4 commit e1e3f68

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/raw-api/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Use cases:
2323
docker run -p 8080:8080 openfga/openfga run
2424

2525
# From the SDK root directory, build the SDK
26-
cd /Users/anurag/openfga/java-sdk
2726
./gradlew build
2827

2928
# Then run the example
@@ -62,8 +61,7 @@ RawRequestBuilder request = RawRequestBuilder.builder("POST", "/stores/{store_id
6261
.queryParam("page_size", "20")
6362
.queryParam("continuation_token", "eyJwayI6...")
6463
.body(requestBody)
65-
.header("X-Custom-Header", "value")
66-
.build();
64+
.header("X-Custom-Header", "value");
6765
```
6866

6967
### Response Handling

src/test-integration/java/dev/openfga/sdk/api/client/RawApiIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ private void writeTupleUsingRawRequest(String storeId, String user, String relat
447447
tupleKey.put("object", object);
448448

449449
Map<String, Object> requestBody = new HashMap<>();
450-
requestBody.put("writes", List.of(Map.of("tuple_key", tupleKey)));
450+
requestBody.put("writes", Map.of("tuple_keys", List.of(tupleKey)));
451451

452452
RawRequestBuilder request = RawRequestBuilder.builder("POST", "/stores/{store_id}/write")
453453
.pathParam("store_id", storeId)

0 commit comments

Comments
 (0)