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

ID-663 Admin delete resource endpoint. #1113

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Ghost-in-a-Jar
Copy link
Contributor

Ticket: https://broadworkbench.atlassian.net/browse/ID-663

What:

Adds resource deletion endpoint for admins.

Why:

We need an admin endpoint we can use to delete resources for users without having to be invited to their workspace.

How:

We took the logic from the resource deletion endpoint and added one for admins (requiring admin privs on the incoming request.


PR checklist

  • I've followed the instructions if I've made any changes to the API, especially if they're breaking changes
  • I've filled out the Security Risk Assessment (requires Broad Internal network access) and attached the result to the JIRA ticket

}
}
Copy link
Contributor Author

@Ghost-in-a-Jar Ghost-in-a-Jar Jun 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was just a PathPrefix("resources" / Segment / Segment / "policies") here before and now we have a new PathPrefix("resources" / Segment / Segment) delete endpoint. The old one is now nested in the PathPrefix("resources" / Segment / Segment) block.

@sonarcloud
Copy link

sonarcloud bot commented Jul 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants