Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,18 @@ credential:
Requests to revoke a holder credential are sent via the IssuerService's REST API:

```http request
POST /v1beta/credentials/{credentialId}/revoke
POST /v1beta/participants/{participantContextId}/credentials/{credentialResourceId}/revoke
```

This request is processed by
the [IssuerCredentialsAdminApiController](../../../../../extensions/api/issuer-admin-api/credentials-api/src/main/java/org/eclipse/edc/issuerservice/api/admin/credentials/v1/unstable/IssuerCredentialsAdminApiController.java)
and delegated to the `CredentialServiceImpl`.

The `credentialId` is the only information that is required to perform the necessary actions. The
`CredentialServiceImpl` performs the following steps:
Next to the `participantContextId`, the `credentialResourceId` is the only information that is required to perform the
necessary actions. Note, that this is the ID of the `VerifiableCredentialResource` that represents the holder
credential, and not the ID of the credential itself.

The `CredentialServiceImpl` performs the following steps:

#### 1. obtain holder credential

Expand Down Expand Up @@ -177,7 +180,7 @@ IssuerService.
Execute the following REST request against the IssuerService's Admin API:

```http request
GET /v1beta/credentials/{credentialId}/status
GET /v1beta/participants/{participantContextId}/credentials/{credentialResourceId}/status
```

the response will be `HTTP 200` if the status information has been obtained. An empty response body indicates that the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
-- only intended for and tested with Postgres!
CREATE TABLE IF NOT EXISTS credential_resource
(
id VARCHAR PRIMARY KEY NOT NULL, -- ID of the VC, duplicated here for indexing purposes
id VARCHAR PRIMARY KEY NOT NULL,
create_timestamp BIGINT NOT NULL, -- POSIX timestamp of the creation of the VC
issuer_id VARCHAR NOT NULL,
holder_id VARCHAR NOT NULL,
Expand Down
Loading