Skip to content

Commit

Permalink
feature: introduced askTotalCount parameter for credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
angelo.andreussi committed Aug 28, 2024
1 parent f81d0f6 commit ddd0f09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -86,6 +87,7 @@ public CredentialListResult simpleQuery(

query.setOffset(offset);
query.setLimit(limit);
query.setAskTotalCount(askTotalCount);

Check warning on line 90 in rest-api/resources/src/main/java/org/eclipse/kapua/app/api/resources/v1/resources/Credentials.java

View check run for this annotation

Codecov / codecov/patch

rest-api/resources/src/main/java/org/eclipse/kapua/app/api/resources/v1/resources/Credentials.java#L90

Added line #L90 was not covered by tests

return query(scopeId, query);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit ddd0f09

Please sign in to comment.