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

feat: add get-all endpoints for MgmgApi #267

Conversation

paullatzelsperger
Copy link
Member

@paullatzelsperger paullatzelsperger commented Feb 8, 2024

What this PR changes/adds

This PR adds endpoints that return all (paginated) collection of resources, specifically:

  • KeyPairs
  • ParticipantContexts
  • DID documents
  • VerifiableCredentials

All of those endpoints require elevated access privileges (="admin" role)

Why it does that

Management operations for the Super User

Further notes

  • the API classes for KeyPAirResources were in the wrong package -> renamed
  • For some reason it's impossible to have multiple controller methods that have different sub-paths, with a root path of /v1. That is why there are separate GetAll...Api.java classes and impls.
  • added a query() method to the ParticipantContextService

Linked Issue(s)

Closes #248

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@paullatzelsperger paullatzelsperger merged commit 442467d into eclipse-edc:main Feb 12, 2024
13 checks passed
@paullatzelsperger paullatzelsperger deleted the feat/add_get_all_endpoints branch February 12, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Management API: implement a restricted "get-all" endpoint
2 participants