Skip to content

Commit c8e080f

Browse files
docs(generated): update examples (#803)
Generated SDK source code using: - Generator version 3.108.0 - Specification version 1.0.0-dev0.1.31 - Automation (cloudant-sdks) version 66d1dad
1 parent 7cc5962 commit c8e080f

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

docs/Examples.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,8 @@ public class CreateDbAndDoc {
113113
*/
114114
// ====================================================================
115115

116-
// Keeping track of the revision number of the document object
117-
// is necessary for further UPDATE/DELETE operations:
118-
exampleDocument.setRev(createDocumentResponse.getRev());
119-
System.out.println("You have created the document:\n" +
120-
exampleDocument);
116+
System.out.println("You have created the document. Response body:\n" +
117+
createDocumentResponse);
121118
}
122119
}
123120
```
@@ -126,12 +123,11 @@ When you run the code, you see a result similar to the following output.
126123

127124
```text
128125
"orders" database created.
129-
You have created the document:
126+
You have created the document. Response body:
130127
{
131-
"_id": "example",
132-
"_rev": "1-1b403633540686aa32d013fda9041a5d",
133-
"joined": "2019-01-24T10:42:99.000Z",
134-
"name": "Bob Smith"
128+
"id": "example",
129+
"rev": "1-1b403633540686aa32d013fda9041a5d",
130+
"ok": true
135131
}
136132
```
137133

@@ -208,14 +204,14 @@ public class GetInfoFromExistingDatabase {
208204
When you run the code, you see a result similar to the following output.
209205

210206
```text
211-
Server Version: 2.1.1
207+
Server Version: 3.2.1
212208
Document count in "orders" database is 1.
213209
Document retrieved from database:
214210
{
215211
"_id": "example",
216212
"_rev": "1-1b403633540686aa32d013fda9041a5d",
217-
"name": "Bob Smith",
218-
"joined": "2019-01-24T10:42:99.000Z"
213+
"joined": "2019-01-24T10:42:59.000Z",
214+
"name": "Bob Smith"
219215
}
220216
```
221217

0 commit comments

Comments
 (0)