diff --git a/rest-api/resources/src/main/java/org/eclipse/kapua/app/api/resources/v1/resources/Credentials.java b/rest-api/resources/src/main/java/org/eclipse/kapua/app/api/resources/v1/resources/Credentials.java index a5354856b93..a40032f1612 100644 --- a/rest-api/resources/src/main/java/org/eclipse/kapua/app/api/resources/v1/resources/Credentials.java +++ b/rest-api/resources/src/main/java/org/eclipse/kapua/app/api/resources/v1/resources/Credentials.java @@ -70,6 +70,7 @@ public CredentialListResult simpleQuery( @PathParam("scopeId") ScopeId scopeId, @QueryParam("userId") EntityId userId, @QueryParam("sortParam") String sortParam, + @QueryParam("askTotalCount") boolean askTotalCount, @QueryParam("sortDir") @DefaultValue("ASCENDING") SortOrder sortDir, @QueryParam("offset") @DefaultValue("0") int offset, @QueryParam("limit") @DefaultValue("50") int limit) throws KapuaException { @@ -86,6 +87,7 @@ public CredentialListResult simpleQuery( query.setOffset(offset); query.setLimit(limit); + query.setAskTotalCount(askTotalCount); return query(scopeId, query); } diff --git a/rest-api/resources/src/main/resources/openapi/credential/credential-scopeId.yaml b/rest-api/resources/src/main/resources/openapi/credential/credential-scopeId.yaml index 94d597c0166..dae9e2824b8 100644 --- a/rest-api/resources/src/main/resources/openapi/credential/credential-scopeId.yaml +++ b/rest-api/resources/src/main/resources/openapi/credential/credential-scopeId.yaml @@ -35,6 +35,7 @@ paths: - ASCENDING - DESCENDING default: ASCENDING + - $ref: '../openapi.yaml#/components/parameters/askTotalCount' - $ref: '../openapi.yaml#/components/parameters/limit' - $ref: '../openapi.yaml#/components/parameters/offset'