Skip to content

Commit

Permalink
Merge pull request #4101 from Agnul97/feature-ask_total_count_credent…
Browse files Browse the repository at this point in the history
…ials

✨  [REST API] FEATURE: Implemented askTotalCount in API '/{scopeId}/credentials'
  • Loading branch information
Coduz authored Aug 29, 2024
2 parents bb70da1 + ddd0f09 commit 6b14b76
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);

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 6b14b76

Please sign in to comment.