From 94b38dab2e37f51914d5857b8726c44eb557ae56 Mon Sep 17 00:00:00 2001 From: Michele Date: Mon, 29 Jun 2020 14:47:11 +0200 Subject: [PATCH 1/2] [fix] correctly aim at the right snippets file extensions --- doc/3/controllers/collection/get-mapping/index.md | 2 +- doc/3/controllers/collection/truncate/index.md | 2 +- doc/3/controllers/document/delete-by-query/index.md | 2 +- doc/3/controllers/document/update-by-query/index.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/3/controllers/collection/get-mapping/index.md b/doc/3/controllers/collection/get-mapping/index.md index e38a7371..43dcffa5 100644 --- a/doc/3/controllers/collection/get-mapping/index.md +++ b/doc/3/controllers/collection/get-mapping/index.md @@ -30,4 +30,4 @@ Returns a `ConcurrentHashMap` representing the collection mappin ## Usage -<<< ./snippets/get-mapping.js \ No newline at end of file +<<< ./snippets/get-mapping.java \ No newline at end of file diff --git a/doc/3/controllers/collection/truncate/index.md b/doc/3/controllers/collection/truncate/index.md index a8819665..9d434cc7 100644 --- a/doc/3/controllers/collection/truncate/index.md +++ b/doc/3/controllers/collection/truncate/index.md @@ -26,4 +26,4 @@ public CompletableFuture truncate( ## Usage -<<< ./snippets/truncate.js +<<< ./snippets/truncate.java diff --git a/doc/3/controllers/document/delete-by-query/index.md b/doc/3/controllers/document/delete-by-query/index.md index c59a5abc..90f5b06f 100644 --- a/doc/3/controllers/document/delete-by-query/index.md +++ b/doc/3/controllers/document/delete-by-query/index.md @@ -43,4 +43,4 @@ Returns an `ArrayList` containing the deleted document ids. ## Usage -<<< ./snippets/delete-by-query.js \ No newline at end of file +<<< ./snippets/delete-by-query.java \ No newline at end of file diff --git a/doc/3/controllers/document/update-by-query/index.md b/doc/3/controllers/document/update-by-query/index.md index 09f0d8b0..0248c35d 100644 --- a/doc/3/controllers/document/update-by-query/index.md +++ b/doc/3/controllers/document/update-by-query/index.md @@ -73,4 +73,4 @@ Each errored document is an object of the `errors` array with the following prop ## Usage -<<< ./snippets/update-by-query.js \ No newline at end of file +<<< ./snippets/update-by-query.java \ No newline at end of file From 369f975304f37f85fb58033113b951791f53f7b0 Mon Sep 17 00:00:00 2001 From: Michele Date: Mon, 29 Jun 2020 17:30:44 +0200 Subject: [PATCH 2/2] [fix] document/update snippet --- doc/3/controllers/document/update/snippets/update.test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/3/controllers/document/update/snippets/update.test.yml b/doc/3/controllers/document/update/snippets/update.test.yml index f16f3719..23a066ff 100644 --- a/doc/3/controllers/document/update/snippets/update.test.yml +++ b/doc/3/controllers/document/update/snippets/update.test.yml @@ -8,4 +8,4 @@ hooks: curl -XPOST -d '{"name":"John"}' -H "Content-Type: application/json" kuzzle:7512/nyc-open-data/yellow-taxi/some-id/_create after: template: print-result -expected: "{_id=some-id, _version=2}" \ No newline at end of file +expected: "_id=some-id, _version=2" \ No newline at end of file