Skip to content

Commit c503cdd

Browse files
committed
Resolved #187 (Fix resourcesService documantation)
1 parent 4864855 commit c503cdd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,6 +1374,7 @@ To get file MIME type yo can get `Content-Type` header from the `Response` insta
13741374
The `createNew()` and `createOrUpdate()` methods offer alternative ways to create resources. Both take a resource descriptor but each handles the URL differently. With the `createNew()` method, specify a folder in the URL, and the new resource ID is created automatically from the label attribute in its descriptor. With the `createOrUpdate()` method, specify a unique new resource ID as part of the URL in `resource()` method.
13751375
```java
13761376
ClientFolder folder = new ClientFolder();
1377+
String parentUri = "/reports";
13771378
folder
13781379
.setUri("/reports/testFolder")
13791380
.setLabel("Test Folder")
@@ -1392,7 +1393,7 @@ OperationResult<ClientResource> result = client
13921393
OperationResult<ClientResource> result = client
13931394
.authenticate("jasperadmin", "jasperadmin")
13941395
.resourcesService()
1395-
.resource(folder.getUri())
1396+
.resource(parenUri)
13961397
.createNew(folder);
13971398
```
13981399
####Modifying a Resource

0 commit comments

Comments
 (0)