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

Implement ParticipantContextManagementAPI #217

Closed
Tracked by #214
paullatzelsperger opened this issue Jan 15, 2024 · 0 comments · Fixed by #229
Closed
Tracked by #214

Implement ParticipantContextManagementAPI #217

paullatzelsperger opened this issue Jan 15, 2024 · 0 comments · Fixed by #229
Labels
api enhancement New feature or request

Comments

@paullatzelsperger
Copy link
Member

paullatzelsperger commented Jan 15, 2024

add ParticipantContext Management API (using the ParticipantService) that requires "super-user" access. Specifically, the following operations should be supported:

  • POST /participants: body contains a ParticipantManifest
  • GET /participants?id=<PARTICIPANTID> returns ParticipantContext object. if no id is specified, returns all participant contexts.
  • POST /participants/{participantId}/token: regenerates and returns the API token for the participant
  • POST /participants/{participantId}/state?active=true activates or deactivates a participant context, emitting an event. Transitioning within the same state is a NOOP. On activation, the DID gets published, on deactivation it gets un-published.
  • DELETE /participants/{participantId} deletes a participant, cascading down to all related entities:
    • VerifiableCredentials
    • DID documents (unpublish, then delete DidResource)
    • KeyPair resources

Minimal structure for a ParticipantManifest:

{
  "serviceEndpoints" : [ 
  {
    "id": ...,
    "type": ...,
    "serviceEndpoint":...
  }
  ],
  "isActive": true|false,
  "autoPublish": true|false,
  "participantId": "bpn, etc.",
  "key":{ ... } //check #212 
	
}

Depends on #212, #215

@paullatzelsperger paullatzelsperger changed the title add ParticipantContext Management API (using the ParticipantService) that requires "super-user" access Implement ParticipantContextManagementAPI Jan 15, 2024
@paullatzelsperger paullatzelsperger added enhancement New feature or request api labels Jan 15, 2024
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 a pull request may close this issue.

1 participant