Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose AccountService.findChildrenRecursive on REST API #3265

Conversation

lorthirk
Copy link

@lorthirk lorthirk commented Mar 5, 2021

Use /{scopeId}/accounts?recursive=true to retrieve all the Accounts down the hierarchy starting from the current one

Related Issue
No related issues

@lorthirk lorthirk added Enhancement This PR/Issue improves an part of Kapua REST API We hope to REST everyday labels Mar 5, 2021
@lorthirk lorthirk requested a review from Coduz March 5, 2021 16:00
@codecov
Copy link

codecov bot commented Mar 5, 2021

Codecov Report

Merging #3265 (b42ec19) into develop (f6ac4d3) will decrease coverage by 21.62%.
The diff coverage is 71.42%.

Impacted file tree graph

@@              Coverage Diff               @@
##             develop    #3265       +/-   ##
==============================================
- Coverage      49.32%   27.70%   -21.63%     
+ Complexity       762      661      -101     
==============================================
  Files           1455     1455               
  Lines          29749    29753        +4     
  Branches        2498     2498               
==============================================
- Hits           14675     8243     -6432     
- Misses         14244    20873     +6629     
+ Partials         830      637      -193     
Impacted Files Coverage Δ Complexity Δ
...kapua/app/api/resources/v1/resources/Accounts.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...a/service/account/internal/AccountServiceImpl.java 82.85% <100.00%> (+45.90%) 0.00 <0.00> (ø)
...rc/main/java/org/eclipse/kapua/KapuaException.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
...c/main/java/org/eclipse/kapua/KapuaErrorCodes.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
...in/java/org/eclipse/kapua/broker/BrokerDomain.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
...ain/java/org/eclipse/kapua/event/ServiceEvent.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
...n/java/org/eclipse/kapua/broker/BrokerDomains.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
...va/org/eclipse/kapua/commons/util/SystemUtils.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
...n/java/org/eclipse/kapua/model/domain/Actions.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
.../java/org/eclipse/kapua/message/KapuaPosition.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (ø%)
... and 517 more

Signed-off-by: Claudio Mezzasalma <claudio.mezzasalma@eurotech.com>
@lorthirk lorthirk force-pushed the feature-restApiAccountsChildrenRecursive branch from c67470e to 11b3fdd Compare March 12, 2021 09:07
@lorthirk lorthirk merged commit 3eefc99 into eclipse-kapua:develop Mar 15, 2021
@lorthirk lorthirk deleted the feature-restApiAccountsChildrenRecursive branch March 15, 2021 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement This PR/Issue improves an part of Kapua REST API We hope to REST everyday
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants