From 098c16e61e7dcc906f233058cb6bf8c8810e2dab Mon Sep 17 00:00:00 2001 From: Ivan Senic Date: Tue, 28 Feb 2023 17:30:33 +0100 Subject: [PATCH] fixed swagger --- src/main/java/io/stargate/sgv2/jsonapi/StargateJsonApi.java | 2 +- .../io/stargate/sgv2/jsonapi/api/v1/CollectionResource.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/stargate/sgv2/jsonapi/StargateJsonApi.java b/src/main/java/io/stargate/sgv2/jsonapi/StargateJsonApi.java index 9e80934b15..f055e2973e 100644 --- a/src/main/java/io/stargate/sgv2/jsonapi/StargateJsonApi.java +++ b/src/main/java/io/stargate/sgv2/jsonapi/StargateJsonApi.java @@ -274,7 +274,7 @@ """ { "status": { - "counted_documents": 2 + "count": 2 } } """), diff --git a/src/main/java/io/stargate/sgv2/jsonapi/api/v1/CollectionResource.java b/src/main/java/io/stargate/sgv2/jsonapi/api/v1/CollectionResource.java index 8707f58e79..c950ce1728 100644 --- a/src/main/java/io/stargate/sgv2/jsonapi/api/v1/CollectionResource.java +++ b/src/main/java/io/stargate/sgv2/jsonapi/api/v1/CollectionResource.java @@ -81,7 +81,7 @@ public CollectionResource(CommandProcessor commandProcessor) { UpdateOneCommand.class }), examples = { - @ExampleObject(ref = "count"), + @ExampleObject(ref = "countDocuments"), @ExampleObject(ref = "deleteOne"), @ExampleObject(ref = "deleteMany"), @ExampleObject(ref = "findOne"),